pub struct CmykData {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub interpolate: bool,
pub scale_factors: (f32, f32),
}Expand description
A structure holding 4-channel CMYK data.
Fields§
§data: Vec<u8>The actual data. It is guaranteed to have the length width * height * 4.
width: u32The width.
height: u32The height.
interpolate: boolWhether the image should be interpolated.
scale_factors: (f32, f32)Additional scaling factors to apply to the image.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CmykData
impl RefUnwindSafe for CmykData
impl Send for CmykData
impl Sync for CmykData
impl Unpin for CmykData
impl UnsafeUnpin for CmykData
impl UnwindSafe for CmykData
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