Module vizia::image

source ·
Expand description

Contains types and functions used for loading and manipulating images. This is a re-export of image.

Structs§

  • 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
  • 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.

Traits§

Functions§

  • Guess image format from memory block
  • Read a tuple containing the (width, height) 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.
  • Writes the supplied buffer to a writer in the specified format.

Type Aliases§

  • Sendable grayscale + alpha channel image buffer
  • Sendable grayscale image buffer
  • Result of an image decoding/encoding process
  • An image buffer for 32-bit float RGB pixels, where the backing container is a flattened vector of floats.
  • Sendable Rgb image buffer
  • An image buffer for 32-bit float RGBA pixels, where the backing container is a flattened vector of floats.
  • Sendable Rgb + alpha channel image buffer