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
- bmpDeprecatedDecoding and Encoding of BMP Images
- Iterators and other auxiliary structure for the
ImageBuffer
type. - Encoding and decoding for various image file formats.
- ddsDeprecatedDecoding of DDS images
- dxtDeprecatedDecoding of DXT (S3TC) compression
- Contains detailed error representation.
- farbfeldDeprecatedDecoding of farbfeld images
- Image representations for ffi.
- gifDeprecatedDecoding of GIF Images
- hdrDeprecatedDecoding of Radiance HDR Images
- icoDeprecatedDecoding and Encoding of ICO files
- Image Processing Functions
- Input and output of images.
- jpegDeprecatedDecoding and Encoding of JPEG Images
- Mathematical helper functions and types.
- pngDeprecatedDecoding and Encoding of PNG Images
- pnmDeprecatedDecoding and Encoding of netpbm image formats (pbm, pgm, ppm and pam)
- tgaDeprecatedDecoding and Encoding of TGA Images
- tiffDeprecatedDecoding and Encoding of TIFF Images
- webpDeprecatedDecoding of WebP Images
Structs
- BGR colors
- BGR colors + alpha channel
- The delay of a frame relative to the previous one.
- A flat buffer over a (multi channel) image.
- A single animation frame
- An implementation dependent iterator, reading the frames as requested
- Generic image buffer
- Grayscale colors
- Grayscale colors + alpha channel
- Immutable pixel iterator
- Represents the progress of an image operation.
- RGB colors
- RGB colors + alpha channel
- A View into another image
Enums
- An enumeration over supported color types and bit depths
- A Dynamic Image
- An enumeration of color types encountered in image formats.
- The generic error type for image operations.
- An enumeration of supported image formats. Not all formats support both encoding and decoding.
- An enumeration of supported image formats for encoding.
Traits
- AnimationDecoder trait
- Types which are safe to treat as an immutable byte slice in a pixel layout for image encoding.
- A trait for manipulating images.
- Trait to inspect an image.
- The trait that all decoders implement
- Specialized image decoding not be supported by all formats
- The trait all encoders implement
- A generalized pixel.
- Primitive trait from old stdlib
Functions
- Guess image format from memory block
- Read the dimensions of the image located at the specified path. This is faster than fully loading the image and then getting its dimensions.
- Create a new image from a Reader
- Create a new image from a byte slice
- Create a new image from a byte slice
- Open the image located at the path specified. The image’s format is determined from the path’s file extension.
- Saves the supplied buffer to a file at the path specified.
- Saves the supplied buffer to a file at the path specified in the specified format.
Type Aliases
- Sendable grayscale + alpha channel image buffer
- Sendable grayscale image buffer
- Result of an image decoding/encoding process
- Sendable Rgb image buffer
- Sendable Rgb + alpha channel image buffer