Struct imageflow_core::ffi::BitmapBgra
[−]
[src]
#[repr(C)]pub struct BitmapBgra { pub w: u32, pub h: u32, pub stride: u32, pub pixels: *mut u8, pub borrowed_pixels: bool, pub alpha_meaningful: bool, pub pixels_readonly: bool, pub stride_readonly: bool, pub can_reuse_space: bool, pub fmt: PixelFormat, pub matte_color: [u8; 4], pub compositing_mode: BitmapCompositingMode, }
Fields
w: u32
bitmap width in pixels
h: u32
bitmap height in pixels
stride: u32
byte length of each row (may include any amount of padding)
pixels: *mut u8
pointer to pixel 0,0; should be of length > h * stride
borrowed_pixels: bool
If true, we don't dispose of *pixels when we dispose the struct
alpha_meaningful: bool
If false, we can even ignore the alpha channel on 4bpp
pixels_readonly: bool
If false, we can edit pixels without affecting the stride
stride_readonly: bool
If false, we can change the stride of the image
can_reuse_space: bool
If true, we can reuse the allocated memory for other purposes
fmt: PixelFormat
matte_color: [u8; 4]
When using compositing mode blend_with_matte, this color will be used. We should probably define this as always being sRGBA, 4 bytes.
compositing_mode: BitmapCompositingMode
Trait Implementations
impl Clone for BitmapBgra
[src]
fn clone(&self) -> BitmapBgra
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for BitmapBgra
[src]
impl PartialEq for BitmapBgra
[src]
fn eq(&self, __arg_0: &BitmapBgra) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BitmapBgra) -> bool
This method tests for !=
.