--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: (image)
comment: 
- !ruby/struct:SM::Flow::P 
  body: Import an image from a file with the given <tt>filename</tt>. The :format option or the file extension is used to determine the image type (jpeg, png, gif, wbmp, gd, gd2, xbm, or xpm). The resulting image will be either of class Image::TrueColor or Image::IndexedColor.
- !ruby/struct:SM::Flow::P 
  body: If the file format is gd2, it is optionally possible to extract only a part of the image. Use options :x, :y, :width, and :height to specify the part of the image to import.
full_name: GD2::Image::import
is_singleton: true
name: import
params: (filename, options = {}) {|image| ...}
visibility: public
