pub struct PsdLayer { /* private fields */ }
Expand description
PsdLayer represents a pixel layer
Implementations§
source§impl PsdLayer
impl PsdLayer
sourcepub fn new(
layer_record: &LayerRecord,
psd_width: u32,
psd_height: u32,
group_id: Option<u32>,
channels: HashMap<PsdChannelKind, ChannelBytes>
) -> PsdLayer
pub fn new( layer_record: &LayerRecord, psd_width: u32, psd_height: u32, group_id: Option<u32>, channels: HashMap<PsdChannelKind, ChannelBytes> ) -> PsdLayer
Create a new photoshop layer
sourcepub fn compression(
&self,
channel: PsdChannelKind
) -> Result<PsdChannelCompression, PsdChannelError>
pub fn compression( &self, channel: PsdChannelKind ) -> Result<PsdChannelCompression, PsdChannelError>
Get the compression level for one of this layer’s channels
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more