pub enum AnyBitmap {
Rgb8(Bitmap<Rgb8>),
Rgba8(Bitmap<Rgba8>),
Gray8(Bitmap<Gray8>),
Cmyk8(Bitmap<Cmyk8>),
DeviceN8(Bitmap<DeviceN8>),
}Expand description
A mode-erased bitmap, used when the transparency group stack must store bitmaps of varying pixel types without monomorphizing the entire stack.
Phase 2 will add rendering methods; Phase 1 only needs storage + dimensions.
Variants§
Rgb8(Bitmap<Rgb8>)
24-bit RGB, 8 bits per channel.
Rgba8(Bitmap<Rgba8>)
32-bit RGBA, 8 bits per channel (alpha stored in a separate plane).
Gray8(Bitmap<Gray8>)
8-bit grayscale.
Cmyk8(Bitmap<Cmyk8>)
32-bit CMYK, 8 bits per channel.
DeviceN8(Bitmap<DeviceN8>)
Up to 8 spot/device-N channels, 8 bits each.
Implementations§
Auto Trait Implementations§
impl Freeze for AnyBitmap
impl RefUnwindSafe for AnyBitmap
impl Send for AnyBitmap
impl Sync for AnyBitmap
impl Unpin for AnyBitmap
impl UnsafeUnpin for AnyBitmap
impl UnwindSafe for AnyBitmap
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