Class: Pdfrb::Color::DeviceN
- Inherits:
-
ColorSpace
- Object
- ColorSpace
- Pdfrb::Color::DeviceN
- Defined in:
- lib/pdfrb/color/color_space.rb
Overview
DeviceN color space — multiple named inks.
Instance Attribute Summary collapse
-
#alternate ⇒ Object
readonly
Returns the value of attribute alternate.
-
#names ⇒ Object
readonly
Returns the value of attribute names.
-
#tint_transform ⇒ Object
readonly
Returns the value of attribute tint_transform.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(names:, alternate:, tint_transform:) ⇒ DeviceN
constructor
A new instance of DeviceN.
- #to_pdf ⇒ Object
Methods inherited from ColorSpace
[], names, register, register_as, registry
Constructor Details
#initialize(names:, alternate:, tint_transform:) ⇒ DeviceN
Returns a new instance of DeviceN.
218 219 220 221 222 |
# File 'lib/pdfrb/color/color_space.rb', line 218 def initialize(names:, alternate:, tint_transform:) @names = names @alternate = alternate @tint_transform = tint_transform end |
Instance Attribute Details
#alternate ⇒ Object (readonly)
Returns the value of attribute alternate.
216 217 218 |
# File 'lib/pdfrb/color/color_space.rb', line 216 def alternate @alternate end |
#names ⇒ Object (readonly)
Returns the value of attribute names.
216 217 218 |
# File 'lib/pdfrb/color/color_space.rb', line 216 def names @names end |
#tint_transform ⇒ Object (readonly)
Returns the value of attribute tint_transform.
216 217 218 |
# File 'lib/pdfrb/color/color_space.rb', line 216 def tint_transform @tint_transform end |
Class Method Details
.pdf_name ⇒ Object
225 |
# File 'lib/pdfrb/color/color_space.rb', line 225 def pdf_name; :DeviceN; end |