[][src]Struct psd::PsdLayer

pub struct PsdLayer { /* fields omitted */ }

PsdLayer represents a pixel layer

Implementations

impl PsdLayer[src]

pub fn new(
    layer_record: &LayerRecord,
    psd_width: u32,
    psd_height: u32,
    group_id: Option<u32>,
    channels: HashMap<PsdChannelKind, ChannelBytes>
) -> PsdLayer
[src]

Create a new photoshop layer

pub fn compression(
    &self,
    channel: PsdChannelKind
) -> Result<PsdChannelCompression, Error>
[src]

Get the compression level for one of this layer's channels

pub fn rgba(&self) -> Result<Vec<u8>, Error>[src]

Create a vector that interleaves the red, green, blue and alpha channels in this PSD

vec![R, G, B, A, R, G, B, A, ...]

Trait Implementations

impl Clone for PsdLayer[src]

impl Debug for PsdLayer[src]

impl Deref for PsdLayer[src]

type Target = LayerProperties

The resulting type after dereferencing.

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.