search for: draw_icon

Displaying 3 results from an estimated 3 matches for "draw_icon".

2006 Dec 03
0
[776] trunk/wxruby2: Added Bitmap#draw method, updated sample
...ntext, to use as the memory </span><span class="cx"> bitmap. Selecting the bitmap into a memory DC allows you to draw into </span><del>-the DC (and therefore the bitmap) and also to use *Blit* to copy -the bitmap to a window. For this purpose, you may find "DC#draw_icon":dc.html#DC_drawicon easier to use instead. </del><ins>+the DC (and therefore the bitmap). and also to use *Blit* to copy the +bitmap to a window. For simple drawing of Bitmaps onto a window''s DC, +you may find "DC#draw_icon":dc.html#DC_drawicon easier to use ins...
2007 Mar 19
0
[901] branches/wxruby2/wxwidgets_282/samples/printing/printing.rb: Method name change fix in printing sample for API change 2.6 -> 2.8
...es/printing/printing.rb&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp2007-03-19 22:30:26 UTC (rev 901) </span><span class="lines">@@ -110,7 +110,7 @@ </span><span class="cx"> </span><span class="cx"> dc.draw_icon( my_icon, 100, 100) </span><span class="cx"> </span><del>- if @bitmap.ok </del><ins>+ if @bitmap.is_ok </ins><span class="cx"> dc.draw_bitmap( @bitmap, 10, 10 ) </span><span class="cx"> end &l...
2007 Feb 12
0
[871] trunk/wxruby2/samples/printing/printing.rb: Enable sample to be run from other directories
...icon_file = File.join(File.dirname(__FILE__), ''mondrian.xpm'') + my_icon = Wx::Icon.new(icon_file, Wx::BITMAP_TYPE_XPM) </ins><span class="cx"> end </span><span class="cx"> </span><span class="cx"> dc.draw_icon( my_icon, 100, 100) </span><span class="lines">@@ -411,9 +413,11 @@ </span><span class="cx"> </span><span class="cx"> # Load icon and bitmap </span><span class="cx"> if Wx::PLATFORM == "WXMSW"...