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

bitmap width in pixels

bitmap height in pixels

byte length of each row (may include any amount of padding)

pointer to pixel 0,0; should be of length > h * stride

If true, we don't dispose of *pixels when we dispose the struct

If false, we can even ignore the alpha channel on 4bpp

If false, we can edit pixels without affecting the stride

If false, we can change the stride of the image

If true, we can reuse the allocated memory for other purposes

When using compositing mode blend_with_matte, this color will be used. We should probably define this as always being sRGBA, 4 bytes.

Trait Implementations

impl Clone for BitmapBgra
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for BitmapBgra
[src]

Formats the value using the given formatter.

impl PartialEq for BitmapBgra
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.