Module image::color

source ยท

Macrosยง

Structsยง

  • Grayscale colors.
  • Grayscale colors + alpha channel
  • RGB colors.
  • RGB colors + alpha channel

Enumsยง

  • An enumeration over supported color types and bit depths
  • An enumeration of color types encountered in image formats.

Constantsยง

  • SRGB_LUMA ๐Ÿ”’
    Coefficients to transform from sRGB to a CIE Y (luminance) value.
  • SRGB_LUMA_DIV ๐Ÿ”’

Traitsยง

  • Blend ๐Ÿ”’
    Blends a color inter another one
  • Provides color conversions for the different pixel types.
  • Convert from one pixel component type to another. For example, convert from u8 to f32 pixel values.
  • IntoColor ๐Ÿ”’
    Copy-based conversions to target pixel types using FromColor.
  • Invert ๐Ÿ”’
    Invert a color

Functionsยง