[][src]Struct krita::paint_layer::PaintLayer

pub struct PaintLayer {
    pub tiles: Vec<Tile>,
    // some fields omitted
}

The representation of a paint layer, it contains a header and at least one tile.

Fields

tiles: Vec<Tile>

The tiles composing this layer.

Implementations

impl PaintLayer[src]

pub fn parse(input: &[u8]) -> IResult<&[u8], PaintLayer>[src]

Parse a Krita layer, feed it the data found inside a .kra file.

pub fn assemble_tiles(
    &self,
    default_pixel: [u8; 4],
    width: usize,
    height: usize
) -> Vec<u8>
[src]

Blit all tiles of this layer to a single image.

Additionally performs a planar to linear conversion for easier use.

Trait Implementations

impl Clone for PaintLayer[src]

impl Debug for PaintLayer[src]

impl PartialEq<PaintLayer> for PaintLayer[src]

impl StructuralPartialEq for PaintLayer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.