Parent

Files

Wx::Image

Public Class Methods

from_bitmap(bmp) click to toggle source

Create a new image from Wx::Bitmap, preserving mask information

# File wx/classes/image.rb, line 10
  def self.from_bitmap(bmp)
    bmp.convert_to_image
  end
read(an_io, type_or_mime, index = -1) click to toggle source

Load a new image from an IO-like object that supports “read“

# File wx/classes/image.rb, line 3
  def self.read(an_io, type_or_mime, index = -1)
    img = new
    img.load_stream(an_io, type_or_mime, index)
    img
  end

Public Instance Methods

convert_to_bitmap() click to toggle source

Convert to bitmap

# File wx/classes/image.rb, line 28
  def convert_to_bitmap
    Wx::Bitmap.from_image(self)
  end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.