Expand description
Functions for altering and converting the color of pixelbufs
Structs§
- BiLevel
- A bi-level color map
Traits§
- ColorMap 
- A color map
Functions§
- brighten
- Brighten the supplied image.
valueis the amount to brighten each pixel by. Negative values decrease the brightness and positive values increase it.
- brighten_in_ place 
- Brighten the supplied image in place.
valueis the amount to brighten each pixel by. Negative values decrease the brightness and positive values increase it.
- contrast
- Adjust the contrast of the supplied image.
contrastis the amount to adjust the contrast by. Negative values decrease the contrast and positive values increase the contrast.
- contrast_in_ place 
- Adjust the contrast of the supplied image in place.
contrastis the amount to adjust the contrast by. Negative values decrease the contrast and positive values increase the contrast.
- dither
- Reduces the colors of the image using the supplied color_mapwhile applying Floyd-Steinberg dithering to improve the visual conception
- grayscale
- Convert the supplied image to grayscale. Alpha channel is discarded.
- grayscale_alpha 
- Convert the supplied image to grayscale. Alpha channel is preserved.
- grayscale_with_ type 
- Convert the supplied image to a grayscale image with the specified pixel type. Alpha channel is discarded.
- grayscale_with_ type_ alpha 
- Convert the supplied image to a grayscale image with the specified pixel type. Alpha channel is preserved.
- huerotate
- Hue rotate the supplied image.
valueis the degrees to rotate each pixel by. 0 and 360 do nothing, the rest rotates by the given degree value. just like the css webkit filter hue-rotate(180)
- huerotate_in_ place 
- Hue rotate the supplied image in place.
valueis the degrees to rotate each pixel by. 0 and 360 do nothing, the rest rotates by the given degree value. just like the css webkit filter hue-rotate(180)
- index_colors 
- Reduces the colors using the supplied color_mapand returns an image of the indices
- invert
- Invert each pixel within the supplied image. This function operates in place.