Parent

Methods

Files

Wx::Bitmap

Public Class Methods

from_image(img, depth = -1) click to toggle source

Constructor copying data from an image

# File wx/classes/bitmap.rb, line 3
  def self.from_image(img, depth = -1)
    new(img, depth)
  end

Public Instance Methods

draw() {|dc| ...} click to toggle source

Accepts a block, which will be passed a device context which can be used to draw upon the Bitmap

# File wx/classes/bitmap.rb, line 22
  def draw
    dc = Wx::MemoryDC.new
    dc.select_object(self)
    yield dc
    dc.select_object( Wx::NULL_BITMAP )
  end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.