pub struct ImageHeader {
pub size: SizeHeader,
pub metadata: ImageMetadata,
}
Expand description
JPEG XL image header.
Use Bundle::parse
to parse the header.
Fields§
§size: SizeHeader
Image size information.
metadata: ImageMetadata
Image metadata.
Implementations§
Source§impl ImageHeader
impl ImageHeader
Sourcepub fn width_with_orientation(&self) -> u32
pub fn width_with_orientation(&self) -> u32
Returns the image width with orientation applied.
Sourcepub fn height_with_orientation(&self) -> u32
pub fn height_with_orientation(&self) -> u32
Returns the image height with orientation applied.
Trait Implementations§
Source§impl<Ctx> Bundle<Ctx> for ImageHeader
impl<Ctx> Bundle<Ctx> for ImageHeader
Auto Trait Implementations§
impl Freeze for ImageHeader
impl RefUnwindSafe for ImageHeader
impl Send for ImageHeader
impl Sync for ImageHeader
impl Unpin for ImageHeader
impl UnwindSafe for ImageHeader
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