Class: HexaPDF::Content::ColorSpace::DeviceCMYK
- Inherits:
-
Object
- Object
- HexaPDF::Content::ColorSpace::DeviceCMYK
- Defined in:
- lib/hexapdf/content/color_space.rb
Overview
The DeviceCMYK color space.
Defined Under Namespace
Classes: Color
Constant Summary collapse
- DEFAULT =
The one (and only) DeviceCMYK color space.
new
Class Method Summary collapse
-
.new ⇒ Object
Returns the DeviceCMYK color space object.
Instance Method Summary collapse
-
#color(c, m, y, k) ⇒ Object
Returns the color object for the given cyan, magenta, yellow and black components.
-
#default_color ⇒ Object
Returns the default color for the DeviceCMYK color space.
-
#family ⇒ Object
Returns
:DeviceCMYK
.
Class Method Details
.new ⇒ Object
Returns the DeviceCMYK color space object.
245 246 247 |
# File 'lib/hexapdf/content/color_space.rb', line 245 def self.new DEFAULT end |
Instance Method Details
#color(c, m, y, k) ⇒ Object
Returns the color object for the given cyan, magenta, yellow and black components.
255 256 257 |
# File 'lib/hexapdf/content/color_space.rb', line 255 def color(c, m, y, k) Color.new(c, m, y, k) end |
#default_color ⇒ Object
Returns the default color for the DeviceCMYK color space.
250 251 252 |
# File 'lib/hexapdf/content/color_space.rb', line 250 def default_color Color.new(0.0, 0.0, 0.0, 1.0) end |
#family ⇒ Object
Returns :DeviceCMYK
.
260 261 262 |
# File 'lib/hexapdf/content/color_space.rb', line 260 def family :DeviceCMYK end |