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§
Sourcefn format(&self) -> Option<PixelFormat>
fn format(&self) -> Option<PixelFormat>
The pixel format, if known.
Sourcefn alpha_format(&self) -> Option<AlphaFormat>
fn alpha_format(&self) -> Option<AlphaFormat>
The alpha format, if known.
Sourcefn lock(&self) -> Rc<dyn ILockedFramebuffer>
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".