--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  - !ruby/struct:SM::Flow::P 
    body: The Palette object for this image
  name: palette
  rw: R
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: import
- !ruby/object:RI::MethodSummary 
  name: load
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::H 
  level: 1
  text: Introduction
- !ruby/struct:SM::Flow::P 
  body: Image is the abstract base class for Image::IndexedColor and Image::TrueColor.
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Creating and Importing
- !ruby/struct:SM::Flow::P 
  body: "Image objects are created either as a blank array of pixels:"
- !ruby/struct:SM::Flow::VERB 
  body: "  image = Image::IndexedColor.new(width, height)\n  image = Image::TrueColor.new(width, height)\n"
- !ruby/struct:SM::Flow::P 
  body: "or by loading image data from a file or a string containing one of the supported image formats:"
- !ruby/struct:SM::Flow::VERB 
  body: "  image = Image.load(file)\n  image = Image.load(string)\n"
- !ruby/struct:SM::Flow::P 
  body: "or by importing image data from a file given by its pathname:"
- !ruby/struct:SM::Flow::VERB 
  body: "   image = Image.import(filename)\n"
- !ruby/struct:SM::Flow::H 
  level: 2
  text: Exporting
- !ruby/struct:SM::Flow::P 
  body: "After manipulating an image, it can be exported to a string in one of the supported image formats:"
- !ruby/struct:SM::Flow::VERB 
  body: "  image.jpeg(quality = nil)\n  image.png(level = nil)\n  image.gif\n  image.wbmp(fgcolor)\n  image.gd\n  image.gd2(fmt = FMT_COMPRESSED)\n"
- !ruby/struct:SM::Flow::P 
  body: "or to a file in a format determined by the filename extension:"
- !ruby/struct:SM::Flow::VERB 
  body: "  image.export(filename, options = {})\n"
constants: []

full_name: GD2::Image
includes: 
- !ruby/object:RI::IncludedModule 
  name: Enumerable
instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: ==
- !ruby/object:RI::MethodSummary 
  name: "[]"
- !ruby/object:RI::MethodSummary 
  name: "[]="
- !ruby/object:RI::MethodSummary 
  name: alpha_blending=
- !ruby/object:RI::MethodSummary 
  name: alpha_blending?
- !ruby/object:RI::MethodSummary 
  name: aspect
- !ruby/object:RI::MethodSummary 
  name: clipping
- !ruby/object:RI::MethodSummary 
  name: clips?
- !ruby/object:RI::MethodSummary 
  name: color2pixel
- !ruby/object:RI::MethodSummary 
  name: compare
- !ruby/object:RI::MethodSummary 
  name: copy_from
- !ruby/object:RI::MethodSummary 
  name: copy_from_rotated
- !ruby/object:RI::MethodSummary 
  name: crop
- !ruby/object:RI::MethodSummary 
  name: crop!
- !ruby/object:RI::MethodSummary 
  name: draw
- !ruby/object:RI::MethodSummary 
  name: dup
- !ruby/object:RI::MethodSummary 
  name: each
- !ruby/object:RI::MethodSummary 
  name: export
- !ruby/object:RI::MethodSummary 
  name: gd
- !ruby/object:RI::MethodSummary 
  name: gd2
- !ruby/object:RI::MethodSummary 
  name: get_pixel
- !ruby/object:RI::MethodSummary 
  name: gif
- !ruby/object:RI::MethodSummary 
  name: h
- !ruby/object:RI::MethodSummary 
  name: height
- !ruby/object:RI::MethodSummary 
  name: interlaced=
- !ruby/object:RI::MethodSummary 
  name: interlaced?
- !ruby/object:RI::MethodSummary 
  name: jpeg
- !ruby/object:RI::MethodSummary 
  name: merge_from
- !ruby/object:RI::MethodSummary 
  name: optimize_palette
- !ruby/object:RI::MethodSummary 
  name: pixel
- !ruby/object:RI::MethodSummary 
  name: pixel2color
- !ruby/object:RI::MethodSummary 
  name: png
- !ruby/object:RI::MethodSummary 
  name: polar_transform
- !ruby/object:RI::MethodSummary 
  name: polar_transform!
- !ruby/object:RI::MethodSummary 
  name: resize
- !ruby/object:RI::MethodSummary 
  name: resize!
- !ruby/object:RI::MethodSummary 
  name: rotate
- !ruby/object:RI::MethodSummary 
  name: rotate!
- !ruby/object:RI::MethodSummary 
  name: save_alpha=
- !ruby/object:RI::MethodSummary 
  name: save_alpha?
- !ruby/object:RI::MethodSummary 
  name: set_pixel
- !ruby/object:RI::MethodSummary 
  name: sharpen
- !ruby/object:RI::MethodSummary 
  name: size
- !ruby/object:RI::MethodSummary 
  name: to_indexed_color
- !ruby/object:RI::MethodSummary 
  name: to_true_color
- !ruby/object:RI::MethodSummary 
  name: transparent
- !ruby/object:RI::MethodSummary 
  name: transparent=
- !ruby/object:RI::MethodSummary 
  name: true_color?
- !ruby/object:RI::MethodSummary 
  name: uncrop
- !ruby/object:RI::MethodSummary 
  name: uncrop!
- !ruby/object:RI::MethodSummary 
  name: w
- !ruby/object:RI::MethodSummary 
  name: wbmp
- !ruby/object:RI::MethodSummary 
  name: width
- !ruby/object:RI::MethodSummary 
  name: with_clipping
name: Image
superclass: Object
