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§
Auto Trait Implementations§
impl Freeze for DIBHEADER
impl RefUnwindSafe for DIBHEADER
impl Send for DIBHEADER
impl Sync for DIBHEADER
impl Unpin for DIBHEADER
impl UnwindSafe for DIBHEADER
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