class HexaPDF::Content::ColorSpace::DeviceCMYK::Color

Parent
Included Modules

A color in the DeviceCMYK color space.

Color values can either be integers in the range from 0 to 100 or floating point numbers between 0.0 and 1.0. The integer color values are automatically normalized to the DeviceCMYK color value range of 0.0 to 1.0.

See: PDF1.7 s8.6.4.4

Public Class Methods

new(c, m, y, k)

Initializes the color with the c (cyan), m (magenta), y (yellow) and k (black) components.

Each argument has to be either an integer between 0 and 100 or a float between 0.0 and 1.0.

Public Instance Methods

color_space()

Returns the DeviceCMYK color space module.

components()

Returns the CMYK color as an array of normalized color values.