[−][src]Struct krita::paint_layer::PaintLayer
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]
&self,
default_pixel: [u8; 4],
width: usize,
height: usize
) -> Vec<u8>
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]
fn clone(&self) -> PaintLayer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PaintLayer
[src]
impl PartialEq<PaintLayer> for PaintLayer
[src]
fn eq(&self, other: &PaintLayer) -> bool
[src]
fn ne(&self, other: &PaintLayer) -> bool
[src]
impl StructuralPartialEq for PaintLayer
[src]
Auto Trait Implementations
impl RefUnwindSafe for PaintLayer
impl Send for PaintLayer
impl Sync for PaintLayer
impl Unpin for PaintLayer
impl UnwindSafe for PaintLayer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,