Class: Pdfrb::Color::ICCBased
- Inherits:
-
CIEBasedColorSpace
- Object
- ColorSpace
- CIEBasedColorSpace
- Pdfrb::Color::ICCBased
- Defined in:
- lib/pdfrb/color/color_space.rb
Overview
ICCBased is special — references an ICC profile stream. Delegates to Pdfrb::Color::ICCProfile for stream creation.
Instance Attribute Summary collapse
-
#icc_stream_ref ⇒ Object
readonly
Returns the value of attribute icc_stream_ref.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(icc_stream_ref) ⇒ ICCBased
constructor
A new instance of ICCBased.
- #to_pdf ⇒ Object
Methods inherited from CIEBasedColorSpace
Methods inherited from ColorSpace
[], names, register, register_as, registry
Constructor Details
#initialize(icc_stream_ref) ⇒ ICCBased
Returns a new instance of ICCBased.
160 161 162 |
# File 'lib/pdfrb/color/color_space.rb', line 160 def initialize(icc_stream_ref) @icc_stream_ref = icc_stream_ref end |
Instance Attribute Details
#icc_stream_ref ⇒ Object (readonly)
Returns the value of attribute icc_stream_ref.
158 159 160 |
# File 'lib/pdfrb/color/color_space.rb', line 158 def icc_stream_ref @icc_stream_ref end |
Class Method Details
.pdf_name ⇒ Object
165 |
# File 'lib/pdfrb/color/color_space.rb', line 165 def pdf_name; :ICCBased; end |