DIBHEADER

Struct DIBHEADER 

Source
pub struct DIBHEADER {
Show 24 fields pub size: u32, pub width: u32, pub height: i32, pub planes: u16, pub bitcount: u16, pub compression: Option<String>, pub sizeimage: Option<u32>, pub XPelsPerMeter: Option<u32>, pub YPelsPerMeter: Option<u32>, pub ClrUsed: Option<u32>, pub ClrImportant: Option<u32>, pub RedMask: Option<u32>, pub GreenMask: Option<u32>, pub BlueMask: Option<u32>, pub AlphaMask: Option<u32>, pub CSType: Option<String>, pub Endpoints: Option<[[i32; 3]; 3]>, pub GammaRed: Option<u32>, pub GammaGreen: Option<u32>, pub GammaBlue: Option<u32>, pub Intent: Option<String>, pub ProfileData: Option<u16>, pub ProfileSize: Option<u16>, pub Reserved: Option<Vec<u8>>,
}
Expand description

The BMP DIB header, which has multiple versions. The officially documented versions (BITMAPCOREHEADER, BITMAPINFOHEADER, BITMAPV4HEADER, BITMAPV5HEADER) can be found here, but there are also some undocumented versions see wikipedia.

Find out what version header is being used by accessing the size property of the DIB header (returns length of DIB header in bytes), since different versions of the DIB headers are all different lengths.

Depending on what DIB header version is being used (BITMAPV5HEADER is the most modern and common), fields that are Options may or may not exist.

Fields§

§size: u32§width: u32§height: i32§planes: u16§bitcount: u16§compression: Option<String>§sizeimage: Option<u32>§XPelsPerMeter: Option<u32>§YPelsPerMeter: Option<u32>§ClrUsed: Option<u32>§ClrImportant: Option<u32>§RedMask: Option<u32>§GreenMask: Option<u32>§BlueMask: Option<u32>§AlphaMask: Option<u32>§CSType: Option<String>§Endpoints: Option<[[i32; 3]; 3]>§GammaRed: Option<u32>§GammaGreen: Option<u32>§GammaBlue: Option<u32>§Intent: Option<String>§ProfileData: Option<u16>§ProfileSize: Option<u16>§Reserved: Option<Vec<u8>>

Trait Implementations§

Source§

impl Clone for DIBHEADER

Source§

fn clone(&self) -> DIBHEADER

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl IntoIterator for DIBHEADER

Source§

type Item = u8

The type of the elements being iterated over.
Source§

type IntoIter = IntoIter<u8, 124>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.