pub trait IBitmapImpl {
// Required methods
fn dpi(&self) -> Vector;
fn pixel_size(&self) -> PixelSize;
fn version(&self) -> i32;
fn save(
&self,
stream: &mut dyn Write,
options: &BitmapEncoderOptions,
) -> Result<()>;
fn dispose(&self);
fn as_any(&self) -> &dyn Any;
// Provided method
fn as_readable_bitmap(&self) -> Option<&dyn IReadableBitmapImpl> { ... }
}Expand description
Defines the platform-specific interface for a bitmap.
Required Methods§
Sourcefn pixel_size(&self) -> PixelSize
fn pixel_size(&self) -> PixelSize
The size of the bitmap, in device pixels.
Provided Methods§
Sourcefn as_readable_bitmap(&self) -> Option<&dyn IReadableBitmapImpl>
fn as_readable_bitmap(&self) -> Option<&dyn IReadableBitmapImpl>
The bitmap viewed as IReadableBitmapImpl, when its pixels can be
read.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".