Module resize::Pixel

source ·
Expand description

Predefined constants for supported pixel formats.

Constants

  • Grayscale, 8-bit.
  • Grayscale, 16-bit, native endian.
  • Grayscale, 32-bit float
  • Grayscale, 64-bit float
  • RGB, 8-bit per component.
  • RGB, 16-bit per component, native endian.
  • RGBA, 8-bit per component. Components are scaled independently. Use this if the input is already alpha-premultiplied.
  • RGBA, 8-bit per component. RGB components will be converted to premultiplied during scaling, and then converted back to uncorrelated.
  • RGBA, 16-bit per component, native endian. Components are scaled independently. Use this if the input is already alpha-premultiplied.
  • RGBA, 16-bit per component, native endian. RGB components will be converted to premultiplied during scaling, and then converted back to uncorrelated.
  • RGBA, 32-bit float per component. This is pretty efficient, since resizing uses f32 internally.
  • RGBA, 64-bit double per component.
  • RGB, 32-bit float per component. This is pretty efficient, since resizing uses f32 internally.
  • RGB, 64-bit double per component.