class Vips::Source
def self.new_from_file(filename)
-
(Source)
- the new Vips::Source
Parameters:
-
filename
(String
) -- the name of the file
def self.new_from_file(filename) raise Vips::Error, "filename is nil" if filename.nil? ptr = Vips.vips_source_new_from_file filename raise Vips::Error if ptr.null? Vips::Source.new ptr end