pub struct Jpeg2000Info {
pub width: u32,
pub height: u32,
pub has_alpha: bool,
pub original_bit_depth: u8,
pub num_components: u8,
}Expand description
Information about a JPEG 2000 image’s decoded result.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
has_alpha: boolWhether the image has an alpha channel.
original_bit_depth: u8The original bit depth before normalization to 8-bit.
num_components: u8Number of color components (excluding alpha). 1 = Gray, 3 = RGB, 4 = CMYK.
Trait Implementations§
Source§impl Clone for Jpeg2000Info
impl Clone for Jpeg2000Info
Source§fn clone(&self) -> Jpeg2000Info
fn clone(&self) -> Jpeg2000Info
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Jpeg2000Info
impl RefUnwindSafe for Jpeg2000Info
impl Send for Jpeg2000Info
impl Sync for Jpeg2000Info
impl Unpin for Jpeg2000Info
impl UnsafeUnpin for Jpeg2000Info
impl UnwindSafe for Jpeg2000Info
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