Phil, I've committed part of your patch (to set the alpha values), but the other part which ignores fills with an alpha value of 0 causes me problems with example 30 (most of the rectangles are no longer visible). Not sure why, since these don't have zero alpha values?
Under Linux wxDC doesn't support transparency so I can't check the changes actually work. Andrew On Sat, Nov 10, 2012 at 10:19:02AM -0800, phil rosenberg wrote: > 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. > ------------------------------------------------------------------------------ > 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 ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Plplot-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/plplot-devel
