Class: Pdfrb::Model::Type::DCTDecodeParms
- Inherits:
-
Cos::Dictionary
- Object
- Object
- Cos::Dictionary
- Pdfrb::Model::Type::DCTDecodeParms
- Defined in:
- lib/pdfrb/model/type/filter_decode_parms.rb
Overview
DCTDecode /DecodeParms dictionary (s7.4.7): color transform.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#cmyk_input? ⇒ Boolean
/ColorTransform 0 = four-component YCCK/CMYK input; 1 (or absent) = three-component YCbCr/RGB.
- #color_transform ⇒ Object
Methods inherited from Cos::Dictionary
#[], #[]=, apply_arlington_definition, arlington_default, arlington_key_to_symbol, arlington_one_type_to_ruby, arlington_required?, arlington_scalar, arlington_types_to_ruby, arlington_version, define_field, define_field_from_arlington, #delete, #each, each_field, #each_raw, #empty?, field, #initialize, #key?, #keys, lookup_type, merged_field, own_fields, #pdf_type, register_type, type_map, #validate
Methods included from Cos::ArlingtonBacked
Methods inherited from Object
#==, define_type, #deref, #indirect?, #initialize, #must_be_indirect?, #pdf_type, pdf_type
Constructor Details
This class inherits a constructor from Pdfrb::Model::Cos::Dictionary
Instance Method Details
#cmyk_input? ⇒ Boolean
/ColorTransform 0 = four-component YCCK/CMYK input; 1 (or absent) = three-component YCbCr/RGB.
35 36 37 |
# File 'lib/pdfrb/model/type/filter_decode_parms.rb', line 35 def cmyk_input? !color_transform.nil? && color_transform.zero? end |
#color_transform ⇒ Object
31 |
# File 'lib/pdfrb/model/type/filter_decode_parms.rb', line 31 def color_transform; self[:ColorTransform]; end |