[−][src]Struct imaged::sys::ImageMeta
ImageMeta is used to store image metadata with information about the image shape and type
Fields
width: u64
height: u64
color: ImageColor
kind: ImageKind
bits: u8
Implementations
impl Meta
[src]
pub fn new(w: usize, h: usize, color: Color, ty: Type) -> Meta
[src]
Create a new Meta instance
pub fn width(&self) -> usize
[src]
pub fn height(&self) -> usize
[src]
pub fn with_color(&self, color: Color) -> Self
[src]
Create a new Meta instance from an existing one with the color changed
pub fn with_type(&self, t: Type) -> Self
[src]
Create a new Meta instance from an existing one with the type changed
pub fn get_type(&self) -> Type
[src]
Get the underlying data type
pub fn get_color(&self) -> Color
[src]
Get image colorspace
pub fn total_bytes(&self) -> usize
[src]
Get total number of bytes occupied by the image data
pub fn channels(&self) -> usize
[src]
Get the number of channels
Trait Implementations
impl Clone for ImageMeta
[src]
impl Copy for ImageMeta
[src]
impl Debug for ImageMeta
[src]
impl PartialEq<ImageMeta> for ImageMeta
[src]
impl PartialOrd<ImageMeta> for ImageMeta
[src]
fn partial_cmp(&self, other: &ImageMeta) -> Option<Ordering>
[src]
fn lt(&self, other: &ImageMeta) -> bool
[src]
fn le(&self, other: &ImageMeta) -> bool
[src]
fn gt(&self, other: &ImageMeta) -> bool
[src]
fn ge(&self, other: &ImageMeta) -> bool
[src]
impl StructuralPartialEq for ImageMeta
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageMeta
impl Send for ImageMeta
impl Sync for ImageMeta
impl Unpin for ImageMeta
impl UnwindSafe for ImageMeta
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,