Struct fltk::image::BmpImage[][src]

pub struct BmpImage { /* fields omitted */ }
Expand description

Creates a struct holding a BMP image

Implementations

Loads the image from a filesystem path, doesn’t check for the validity of the data

Errors

Errors on non-existent path or invalid format

Loads the image from data/memory

Errors

Errors on invalid format

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Performs a deep copy of the image

Draws the image at the presupplied coordinates and size

Draws the image at the presupplied coordinates and size and offset cx, cy

Return the width of the image

Return the height of the image

Return the width of the image

Return the height of the image

Retunrs a pointer of the image Read more

Transforms a raw image pointer to an image Read more

Returns the underlying raw rgb image data

Returns the underlying raw image data

Transforms the image into an RgbImage Read more

Scales the image

Return the count of pointers in an image (Pixmaps have more than 1, bitmaps have 0, Rgb based images have 1)

Gets the image’s data width

Gets the image’s data height

Gets the image’s depth

Gets the image’s line data size

Greys the image

Deletes the image Read more

INTERNAL: Manually increment the atomic refcount Read more

INTERNAL: Manually decrement the atomic refcount Read more

Checks if the image was deleted

Transforms an Image base into another Image Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.