Module rsvg::surface_utils::srgb

source ·
Expand description

Utility functions for dealing with sRGB colors.

The constant values in this module are taken from http://www.color.org/chardata/rgb/srgb.xalter

Constants§

Functions§

  • Converts an sRGB color value to a linear sRGB color value (undoes the gamma correction).
  • Converts an sRGB surface to a linear sRGB surface (undoes the gamma correction).
  • Applies the function to each pixel component after unpremultiplying.
  • Processing loop of map_unpremultiplied_components. Extracted (and public) for benchmarking.
  • Converts a linear sRGB color value to a normal sRGB color value (applies the gamma correction).
  • Converts a linear sRGB surface to a normal sRGB surface (applies the gamma correction).