FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IBitmap

    trait · ferroui-base · v0.5.0

    trait IBitmap: IImage
    

    Represents a bitmap image.

    View source

    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.

    Source

    pixel_size

    fn pixel_size(self: &Self) -> PixelSize
    

    The size of the bitmap, in device pixels.

    Source

    save

    fn save(self: &Self, stream: &mut dyn Write, options: &BitmapEncoderOptions) -> std::io::Result<()>
    

    Saves the bitmap to a stream.

    Source

    dispose

    fn dispose(self: &Self)
    

    Releases the bitmap.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.