Christopher Barker wrote: > Thanks for all this, Paul. You are most welcome! I'm pleased to be able to contribute back in some small way to a library that has provided a really nice (and central) feature to my commercial application.
> Paul McNett wrote: >> Interesting that Mac can seemingly handle any depth from 2 to 32, with >> all output pixels matching all input pixels. I don't understand how that >> could be, unless the bitmap is automatically created with maximum depth >> regardless of the depth argument... > > I'm pretty sure that's it. wx wraps the native bitmap, which I think > matches the display depth, which I think is always 32 bit on the mac. That makes the most sense. >> One thing I'm noticing on Mac is that wx.GetDisplayDepth() >> returns None. > > Did you try creating a wx.Bitmap, and calling Bitmap.GetDepth() > > I suspect you'll always get 24 or 32. It reports the depth as given. IOW: >>> import wx >>> a = wx.App(False) >>> b = wx.EmptyBitmap(1, 1, depth=2) >>> print b.GetDepth() 2 However, I'm able to paint to that pixel using all available 32-bit colors. Now, I haven't tried saving the bitmap to see what the output is, but calling the GetPixel() type functions returns the pixel as given, so it works for our use. Paul _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
