search for: draw_ellipse

Displaying 1 result from an estimated 1 matches for "draw_ellipse".

2006 Dec 03
0
[776] trunk/wxruby2: Added Bitmap#draw method, updated sample
....new(10, 10) ) </span><span class="cx"> </span><span class="cx"> bitmap = Bitmap.new( 100, 100 ) </span><del>- dc = MemoryDC.new - dc.select_object( bitmap ) - dc.set_pen(GREEN_PEN) - dc.clear() - dc.draw_ellipse(5, 5, 90, 90) - dc.draw_text("Bitmap", 30, 40) - dc.select_object( NULL_BITMAP ) </del><ins>+ bitmap.draw do | dc | + dc.clear() + dc.set_pen(GREEN_PEN) + dc.draw_ellipse(5, 5, 90, 90) + dc.draw_text("Bitmap",...