pub struct RgbImage { /* fields omitted */ }
Expand description
Creates a struct holding a raw RGB image
Initializes a new raw RgbImage
, copies the data and handles its lifetime.
If you need to work with RGB data,
Errors on invalid or unsupported image format
Initializes a new raw RgbImage
from shared data, doesn’t handle the data’s lifetime
The data must be valid for the lifetime of the image
Errors on invalid or unsupported image format
Initializes a new raw RgbImage
, copies the data and handles its lifetime.
If you need to work with RGB data,
Errors on invalid or unsupported image format
Passing wrong line data can read to over or underflow
Initializes a new raw RgbImage
from shared data, doesn’t handle the data’s lifetime
The data must be valid for the lifetime of the image
Errors on invalid or unsupported image format
Passing wrong line data can read to over or underflow
Creates an RgbImage from a pixmap
Deconstructs a raw RgbImage
into parts
Destructures the image into its raw elements
Convert from one ColorDepth to another ColorDepth
Sets the scaling algorithm
Gets the scaling algorithm
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
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
Transforms the image into an RgbImage
Read more
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 line data size
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 !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
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.
The type returned in the event of a conversion error.