Hi
I'm just emailing after having a couple of transparency issues with wxDC. It 
turns out that most of the derivatives of wxDC don't support the alpha channel 
and so it seems alpha was not passed to this backend by plPlot. I think, 
however, that we should support the few that do.
 
One of the ones that doesn't is the MemoryDC, which has caused me some 
problems. I currently call the C++ version of plshade using a Contourable_Data 
object with the fill set with an alpha of 0 to plot only contours. 
Unfortunately this dousen't work when the wxDC doesn't support alpha.
 
My workaround is to modify wxPLDevDC::FillPolygon so that if alpha is 0, the 
polygon simply isn't drawn.
 
I've attached a patch with the two changes (alpha used in case the DC supports 
it and not drawing entirely transparent polygons), but maybe someone can 
indicate a better way to use Contourable_Data objects to plot contours only.

Attachment: wxwidgets_dc_transparency.patch
Description: Binary data

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to