Struct plotters_bitmap::bitmap_pixel::RGBPixel [−][src]
pub struct RGBPixel;
Expand description
The marker type that indicates we are currently using a RGB888 pixel format
Trait Implementations
impl PixelFormat for RGBPixel
[src]
impl PixelFormat for RGBPixel
[src]const PIXEL_SIZE: usize
[src]
const PIXEL_SIZE: usize
[src]Number of bytes per pixel
const EFFECTIVE_PIXEL_SIZE: usize
[src]
const EFFECTIVE_PIXEL_SIZE: usize
[src]Number of effective bytes per pixel, e.g. for BGRX pixel format, the size of pixel is 4 but the effective size is 3, since the 4th byte isn’t used Read more
fn byte_at(r: u8, g: u8, b: u8, _a: u64, idx: usize) -> u8
[src]
fn byte_at(r: u8, g: u8, b: u8, _a: u64, idx: usize) -> u8
[src]Encoding a pixel and returns the idx-th byte for the pixel
fn can_be_saved() -> bool
[src]
fn can_be_saved() -> bool
[src]Indicates if this pixel format can be saved as image. Note: Currently we only using RGB pixel format in the image crate, but later we may lift this restriction Read more
fn blend_rect_fast(
target: &mut BitMapBackend<'_, Self>,
upper_left: (i32, i32),
bottom_right: (i32, i32),
r: u8,
g: u8,
b: u8,
a: f64
)
[src]
fn blend_rect_fast(
target: &mut BitMapBackend<'_, Self>,
upper_left: (i32, i32),
bottom_right: (i32, i32),
r: u8,
g: u8,
b: u8,
a: f64
)
[src]The fast alpha blending algorithm for this pixel format Read more
fn fill_rect_fast(
target: &mut BitMapBackend<'_, Self>,
upper_left: (i32, i32),
bottom_right: (i32, i32),
r: u8,
g: u8,
b: u8
)
[src]
fn fill_rect_fast(
target: &mut BitMapBackend<'_, Self>,
upper_left: (i32, i32),
bottom_right: (i32, i32),
r: u8,
g: u8,
b: u8
)
[src]The fast rectangle filling algorithm Read more