class HexaPDF::Content::ColorSpace::DeviceCMYK

Parent

The DeviceCMYK color space.

Constants

DEFAULT

The one (and only) DeviceCMYK color space.

Public Class Methods

new(_definition = nil)

Returns the DeviceCMYK color space object.

Public Instance Methods

color(c, m, y, k)

Returns the color object for the given cyan, magenta, yellow and black components.

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.

default_color()

Returns the default color for the DeviceCMYK color space.

definition()
Alias for: family
family()

Returns :DeviceCMYK.

Also aliased as: definition
prenormalized_color(c, m, y, k)

Returns the color object for the cyan, magenta, yellow and black components without applying value normalization.

See: color