IBitmap
trait · ferroui-base · v0.5.0
trait IBitmap: IImage
Represents a bitmap image.
Members
dpi
fn dpi(self: &Self) -> Vector
The dots per inch (DPI) of the image.
Note that the backend may not support DPI information; in that case the default of 96 is reported.
pixel_size
fn pixel_size(self: &Self) -> PixelSize
The size of the bitmap, in device pixels.
save
fn save(self: &Self, stream: &mut dyn Write, options: &BitmapEncoderOptions) -> std::io::Result<()>
Saves the bitmap to a stream.
dispose
fn dispose(self: &Self)
Releases the bitmap.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.