[wxPython-users] Re: Trouble with drawing, I need some ideas :)

Robin Dunn robin at alldunn.com
Mon Oct 22 23:26:57 PDT 2007


Christopher Barker wrote:
> Robin Dunn wrote:
>> I think you're thinking of blitting a bitmap on OS X with a logical 
>> operation other than wx.COPY.  I don't recall any pixel iteration code 
>> just for masks...
> 
> Hmm .. maybe that was it, but not just OS-X -- it was pokey on Windows 
> ans GTK as well.

Nevermind, I found the code that you were probably thinking of. 
wx.GraphicsContext.DrawBitmap on MSW does do a pixel by pixel conversion 
of mask to alpha before drawing.  I'm not sure why it was done that way, 
I would think that there would be a more efficient way to do that.  On 
the other hand, if it does have alpha to begin with then the image goes 
straight to the graphics context in just a couple steps.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list