Expand description
Items related to working with images. Currently, this module simply re-exports the renown image crate which supports reading and writing PNG, JPEG, GIF, WEBP, BMP and more.
Modules§
- bmp
Deprecated - Decoding and Encoding of BMP Images
- buffer
- Iterators and other auxiliary structure for the
ImageBuffer
type. - codecs
- Encoding and decoding for various image file formats.
- dds
Deprecated - Decoding of DDS images
- dxt
Deprecated - Decoding of DXT (S3TC) compression
- error
- Contains detailed error representation.
- farbfeld
Deprecated - Decoding of farbfeld images
- flat
- Image representations for ffi.
- gif
Deprecated - Decoding of GIF Images
- hdr
Deprecated - Decoding of Radiance HDR Images
- ico
Deprecated - Decoding and Encoding of ICO files
- imageops
- Image Processing Functions
- io
- Input and output of images.
- jpeg
Deprecated - Decoding and Encoding of JPEG Images
- math
- Mathematical helper functions and types.
- png
Deprecated - Decoding and Encoding of PNG Images
- pnm
Deprecated - Decoding and Encoding of netpbm image formats (pbm, pgm, ppm and pam)
- tga
Deprecated - Decoding and Encoding of TGA Images
- tiff
Deprecated - Decoding and Encoding of TIFF Images
- webp
Deprecated - Decoding of WebP Images
Structs§
- Bgr
- BGR colors
- Bgra
- BGR colors + alpha channel
- Delay
- The delay of a frame relative to the previous one.
- Flat
Samples - A flat buffer over a (multi channel) image.
- Frame
- A single animation frame
- Frames
- An implementation dependent iterator, reading the frames as requested
- Image
Buffer - Generic image buffer
- Luma
- Grayscale colors
- LumaA
- Grayscale colors + alpha channel
- Pixels
- Immutable pixel iterator
- Progress
- Represents the progress of an image operation.
- Rgb
- RGB colors
- Rgba
- RGB colors + alpha channel
- SubImage
- A View into another image
Enums§
- Color
Type - An enumeration over supported color types and bit depths
- Dynamic
Image - A Dynamic Image
- Extended
Color Type - An enumeration of color types encountered in image formats.
- Image
Error - The generic error type for image operations.
- Image
Format - An enumeration of supported image formats. Not all formats support both encoding and decoding.
- Image
Output Format - An enumeration of supported image formats for encoding.
Traits§
- Animation
Decoder - AnimationDecoder trait
- Encodable
Layout - Types which are safe to treat as an immutable byte slice in a pixel layout for image encoding.
- Generic
Image - A trait for manipulating images.
- Generic
Image View - Trait to inspect an image.
- Image
Decoder - The trait that all decoders implement
- Image
Decoder Ext - Specialized image decoding not be supported by all formats
- Image
Encoder - The trait all encoders implement
- Pixel
- A generalized pixel.
- Primitive
- Primitive trait from old stdlib
Functions§
- guess_
format - Guess image format from memory block
- image_
dimensions - Read the dimensions of the image located at the specified path. This is faster than fully loading the image and then getting its dimensions.
- load
- Create a new image from a Reader
- load_
from_ memory - Create a new image from a byte slice
- load_
from_ memory_ with_ format - Create a new image from a byte slice
- open
- Open the image located at the path specified. The image’s format is determined from the path’s file extension.
- save_
buffer - Saves the supplied buffer to a file at the path specified.
- save_
buffer_ with_ format - Saves the supplied buffer to a file at the path specified in the specified format.
Type Aliases§
- Gray
Alpha Image - Sendable grayscale + alpha channel image buffer
- Gray
Image - Sendable grayscale image buffer
- Image
Result - Result of an image decoding/encoding process
- RgbImage
- Sendable Rgb image buffer
- Rgba
Image - Sendable Rgb + alpha channel image buffer