Class: RPDF::ImageDictionary

Inherits:
PDFDictionary show all
Defined in:
lib/rpdf/imagedictionary.rb

Overview

Image Dictionary Object

PDFRef15 p303

Instance Attribute Summary

Attributes inherited from PDFDictionary

#dict

Attributes inherited from PDFObject

#generation_number, #object_number

Instance Method Summary collapse

Methods inherited from PDFDictionary

#[], #[]=, #to_s, #update

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