Struct breadx::image::Image [−][src]
pub struct Image<Data> {}Show fields
pub width: usize, pub height: usize, pub x_offset: usize, pub format: ImageFormat, pub depth: u8, pub bit_order: ImageOrder, pub byte_order: ImageOrder, pub bitmap_unit: u8, pub bitmap_pad: u32, pub bytes_per_line: usize, pub bits_per_pixel: u8, pub red_mask: u32, pub green_mask: u32, pub blue_mask: u32, pub data: Data,
Expand description
An image. This acts as a wrapper around data that represents an image.
Fields
width: usize
The width of this image.
height: usize
The height of this image.
x_offset: usize
Number of pixels offset in the X direction.
format: ImageFormat
Format for this image.
depth: u8
The depth of this image.
bit_order: ImageOrder
Bit order of this image.
byte_order: ImageOrder
Byte order of this image.
bitmap_unit: u8
The quantity of the scanline (usually 8, 16, or 32)
bitmap_pad: u32
bytes_per_line: usize
bits_per_pixel: u8
red_mask: u32
Red mask.
green_mask: u32
Green mask.
blue_mask: u32
Blue mask.
data: Data
The data contained within this image.
Implementations
Create a new image, given its associated connection, visual type, depth, format, offset (should be zero unless the data starts partway into the collection), width, height, scanline quantum (8, 16, or 32) and the number of bytes per line (how many bytes between a pixel on one line and a pixel with the same X position on another line?)
Get a reference to the interior data.
Trait Implementations
Auto Trait Implementations
impl<Data> RefUnwindSafe for Image<Data> where
Data: RefUnwindSafe,
impl<Data> UnwindSafe for Image<Data> where
Data: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more