class HexaPDF::Content::ColorSpace::DeviceGray

Parent

The DeviceGray color space.

Constants

DEFAULT

The one (and only) DeviceGray color space.

Public Class Methods

new(_definition = nil)

Returns the DeviceGray color space object.

Public Instance Methods

color(gray)

Returns the color object for the given gray component.

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 DeviceGray color value range of 0.0 to 1.0.

default_color()

Returns the default color for the DeviceGray color space.

definition()
Alias for: family
family()

Returns :DeviceGray.

Also aliased as: definition
prenormalized_color(gray)

Returns the color object for the gray component without applying value normalization.

See: color