[−][src]Struct psd::PsdLayer
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]
layer_record: &LayerRecord,
psd_width: u32,
psd_height: u32,
group_id: Option<u32>,
channels: HashMap<PsdChannelKind, ChannelBytes>
) -> PsdLayer
Create a new photoshop layer
pub fn compression(
&self,
channel: PsdChannelKind
) -> Result<PsdChannelCompression, Error>
[src]
&self,
channel: PsdChannelKind
) -> Result<PsdChannelCompression, Error>
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
Auto Trait Implementations
impl RefUnwindSafe for PsdLayer
impl Send for PsdLayer
impl Sync for PsdLayer
impl Unpin for PsdLayer
impl UnwindSafe for PsdLayer
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>,