phpdftk API Documentation

ColorConverter
in package

FinalYes

Lossless color model conversions between RGB, CMYK, and Gray.

RGB↔CMYK uses the standard subtractive model. RGB→Gray uses ITU-R BT.601 luma coefficients (0.299R + 0.587G + 0.114B) to match perceived brightness.

Table of Contents

Methods

cmykToRgb()  : RgbColor
grayToRgb()  : RgbColor
rgbToCmyk()  : CmykColor
rgbToGray()  : GrayColor

Methods


        
On this page

Search results