class HexaPDF::Content::ColorSpace::DeviceRGB

Parent

The DeviceRGB color space.

Constants

DEFAULT

The one (and only) DeviceRGB color space.

Public Class Methods

new(_definition = nil)

Returns the DeviceRGB color space object.

Public Instance Methods

color(r, g, b)

Returns the color object for the red, green and blue components.

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

default_color()

Returns the default color for the DeviceRGB color space.

definition()
Alias for: family
family()

Returns :DeviceRGB.

Also aliased as: definition
prenormalized_color(r, g, b)

Returns the color object for the red, green and blue components without applying value normalization.

See: color