Struct msdfgen::Bitmap

source ·
#[repr(C)]
pub struct Bitmap<T> { /* private fields */ }
Expand description

Bitmap object

Implementations§

Save bitmap as png

Load bitmap from png

Create new bitmap with specified size

Get width of bitmap in pixels

Get height of bitmap in pixels

Get pixel data slice for reading from

Get pixel data slice for writing to

Get raw pixels data for reading from

Get raw pixels data for writing to

Get pixel with specified coordinates

Get pixel with specified coordinates

Invert pixels colors

Flip pixels around y axis

Flip pixels around y axis

Convert bitmap data type

Trait Implementations§

Converts this type into a mutable reference of the (usually inferred) input type.
Converts this type into a shared reference of the (usually inferred) input type.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Executes the destructor for this type. Read more
Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.