Class: Pdfrb::Color::Indexed
- Inherits:
-
ColorSpace
- Object
- ColorSpace
- Pdfrb::Color::Indexed
- Defined in:
- lib/pdfrb/color/color_space.rb
Overview
Indexed color space — maps small integer codes to colors in a base space.
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
-
#hival ⇒ Object
readonly
Returns the value of attribute hival.
-
#lookup ⇒ Object
readonly
Returns the value of attribute lookup.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(base:, hival:, lookup:) ⇒ Indexed
constructor
A new instance of Indexed.
- #to_pdf ⇒ Object
Methods inherited from ColorSpace
[], names, register, register_as, registry
Constructor Details
#initialize(base:, hival:, lookup:) ⇒ Indexed
Returns a new instance of Indexed.
178 179 180 181 182 |
# File 'lib/pdfrb/color/color_space.rb', line 178 def initialize(base:, hival:, lookup:) @base = base @hival = hival @lookup = lookup end |
Instance Attribute Details
#base ⇒ Object (readonly)
Returns the value of attribute base.
176 177 178 |
# File 'lib/pdfrb/color/color_space.rb', line 176 def base @base end |
#hival ⇒ Object (readonly)
Returns the value of attribute hival.
176 177 178 |
# File 'lib/pdfrb/color/color_space.rb', line 176 def hival @hival end |
#lookup ⇒ Object (readonly)
Returns the value of attribute lookup.
176 177 178 |
# File 'lib/pdfrb/color/color_space.rb', line 176 def lookup @lookup end |
Class Method Details
.pdf_name ⇒ Object
185 |
# File 'lib/pdfrb/color/color_space.rb', line 185 def pdf_name; :Indexed; end |