lib/chunky_png/datastream.rb
# Reads a PNG datastream from a file.
# @param [String] filename The path of the file to load from.
# @return [ChunkyPNG::Datastream] The loaded datastream instance.
Reads a PNG datastream from a file.
Reads a PNG datastream from a file .
def from_file(filename)
        ds = nil
        File.open(filename, "rb") { |f| ds = from_io(f) }
        ds
      end
def from_file ( filename ) ds = nil File . open ( filename , "rb" ) { | f | ds = from_io ( f ) } ds end
Reads a PNG datastream from a file.
Reads a PNG datastream from a file .
The loaded datastream instance.
The loaded datastream instance .
ChunkyPNG::Datastream
filename
<not_specific>
<not_specific>
filename The path of the file to load from.
filename The path of the file to load from .