Skip to main content

IReadableBitmapImpl

Trait IReadableBitmapImpl 

Source
pub trait IReadableBitmapImpl: IBitmapImpl {
    // Required methods
    fn format(&self) -> Option<PixelFormat>;
    fn alpha_format(&self) -> Option<AlphaFormat>;
    fn lock(&self) -> Rc<dyn ILockedFramebuffer>;
}
Expand description

A bitmap whose pixels can be read.

Required Methods§

Source

fn format(&self) -> Option<PixelFormat>

The pixel format, if known.

Source

fn alpha_format(&self) -> Option<AlphaFormat>

The alpha format, if known.

Source

fn lock(&self) -> Rc<dyn ILockedFramebuffer>

Locks the pixels for reading (and writing, for writeable bitmaps).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§