Class: RPDF::ImageDictionary
- Inherits:
-
PDFDictionary
- Object
- PDFObject
- PDFDictionary
- RPDF::ImageDictionary
- Defined in:
- lib/rpdf/imagedictionary.rb
Overview
Image Dictionary Object
- PDFRef15 p303
Instance Attribute Summary
Attributes inherited from PDFDictionary
Attributes inherited from PDFObject
#generation_number, #object_number
Instance Method Summary collapse
-
#initialize(width, height, colorspace, bpc, document = nil) ⇒ ImageDictionary
constructor
bpc: 8, 12 or 16.
Methods inherited from PDFDictionary
Methods inherited from PDFObject
#indirect?, #invalidate, #invalidated?, #to_pdf, #to_ref
Constructor Details
#initialize(width, height, colorspace, bpc, document = nil) ⇒ ImageDictionary
bpc: 8, 12 or 16
11 12 13 14 15 16 17 18 19 |
# File 'lib/rpdf/imagedictionary.rb', line 11 def initialize(width, height, colorspace, bpc, document=nil) super({ :Type => :XObject, :Subtype => :Image, :Width => width, :Height => height, :ColorSpace => colorspace, :BitsPerComponent => bpc }, document) end |