Displaying 4 results from an estimated 4 matches for "select_object".
2006 Dec 03
0
[776] trunk/wxruby2: Added Bitmap#draw method, updated sample
...device context, and the original
+bitmap restored, allowing the current bitmap to be destroyed safely.
</ins><span class="cx">
</span><ins>+It is recommended that you use "Bitmap#draw":Bitmap.html#Bitmap_draw
+rather than creating a MemoryDC and calling select_object yourself.
</ins></span></pre></div>
<a id="trunkwxruby2libwxclassesbitmaprb"></a>
<div class="addfile"><h4>Added: trunk/wxruby2/lib/wx/classes/bitmap.rb (0 => 776)</h4>
<pre class="diff"><span>
<sp...
2007 Oct 04
1
wxRuby: MemoryDC problems...
I''m trying to put together a quick test of buffered animation with
WxRuby, but I''m encountering a fair amount of trouble... I''m drawing
to a Wx::Bitmap first, then using Wx::DC#draw_bitmap to copy it to a
Wx::Window. But I get the following error:
C:/ruby/lib/ruby/gems/1.8/gems/wxruby-1.9.1-i386-mswin32/lib/wx/classes/bitmap.rb:18:in
`draw'': uninitialized
2004 Jan 08
3
pictorG
...fn}"
thm_file=thm_name(fn).join
gen_thm fn unless FileTest.file? thm_file
icon_data=Bitmap.new(thm_file, BITMAP_TYPE_JPEG)
w,h=icon_data.get_width,icon_data.get_height
icon=Bitmap.new(THM_WIDTH,THM_HEIGHT)
icon_dc=MemoryDC.new()
icon_dc.select_object(icon)
icon_dc.set_brush(TRANSPARENT_BRUSH)
icon_dc.clear()
icon_dc.draw_bitmap(icon_data,(THM_WIDTH-w)/2,(THM_HEIGHT-h)/2,false)
icon_dc.select_object(NULL_BITMAP)
@imageList.add icon
refresh_item i
Thread.pass
}
}
end
end
#======...
2006 Sep 14
2
Patch to fix ArtProvider and ArtProvider sample
These patches better implement ArtProvider and add the demo for it. I
also expanded the bigdemo window a little bit. I really think we should
go larger but I suppose there might be some people at 800x600 still.
Note that creating your own art provider still doesn''t quite work
correctly. I didn''t have time to get into that.
The RubyConstants.i.patch file looks weird. Not