Class: VIPS::PNGReader
- Defined in:
- lib/vips/reader.rb,
ext/reader.c
Instance Attribute Summary collapse
-
#sequential ⇒ Object
Returns the value of attribute sequential.
Attributes inherited from Reader
Instance Method Summary collapse
-
#initialize(path, options = {}) ⇒ PNGReader
constructor
Create a png image file reader.
-
#read ⇒ Object
Read the png file from disk and return a VIPS Image object.
Methods inherited from Reader
Methods included from Header
#band_fmt, #bands, #exif, #exif?, #get, #icc, #icc?, #n_elements, #set, #sizeof_element, #sizeof_line, #sizeof_pel, #x_offset, #x_res, #x_size, #y_offset, #y_res, #y_size
Constructor Details
#initialize(path, options = {}) ⇒ PNGReader
Create a png image file reader.
151 152 153 154 155 156 |
# File 'lib/vips/reader.rb', line 151 def initialize(path, ={}) @sequential = false self.sequential = [:sequential] if .has_key?(:sequential) super path, end |
Instance Attribute Details
#sequential ⇒ Object
Returns the value of attribute sequential.
148 149 150 |
# File 'lib/vips/reader.rb', line 148 def sequential @sequential end |
Instance Method Details
#read ⇒ Object
Read the png file from disk and return a VIPS Image object.
159 160 161 162 163 164 165 |
# File 'lib/vips/reader.rb', line 159 def read str = @path str << ":" str << "sequential" if @sequential read_internal str end |