pub enum ImageData {
Color(ColorImage),
Font(FontImage),
}
Expand description
An image stored in RAM.
To load an image file, see ColorImage::from_rgba_unmultiplied
.
In order to paint the image on screen, you first need to convert it to
See also: ColorImage
, FontImage
.
Variants§
Implementations§
Trait Implementations§
source§impl From<ColorImage> for ImageData
impl From<ColorImage> for ImageData
source§fn from(image: ColorImage) -> ImageData
fn from(image: ColorImage) -> ImageData
Converts to this type from the input type.