Method: HexaPDF::ImageLoader::PNG.load
- Defined in:
- lib/hexapdf/image_loader/png.rb
.load(document, file_or_io) ⇒ Object
:call-seq:
PNG.load(document, filename) -> image_obj
PNG.load(document, io) -> image_obj
Creates a PDF image object from the PNG file or IO stream.
109 110 111 |
# File 'lib/hexapdf/image_loader/png.rb', line 109 def self.load(document, file_or_io) new(document, file_or_io).load end |