On 07/05/2011 06:34 AM, Benoît Minisini wrote: >> Since DrawImage just copies the RGBA channels and PaintImage blends the >> channels using the alpha channel, I'm assuming that DrawAlpha copies >> (but does not blend) the alpha channel. Is that the case? > > Actually DrawAlpha is PaintAlpha. I saw no point of just copying the alpha > channel. > > Blending the alpha channel is just keeping the greater transparency between > the destination pixel and the source pixel. This is what DrawAlpha does.
Very good. I think I misunderstood how it worked, despite it doing what it was supposed to in my program. > By the way, I have fixed a bug in the alpha blending of PaintImage in revision > #3926. Tell me if you notice the change. I'm going to try recompiling again since revision 3910 involved SDL, but right now I get the error "The program has returned the value: 127" as soon as Client.Initialize() calls Render.Initialize(). The procedure call raises the error immediately, not a line inside the Render.Initialize() procedure, which is interesting. I'll let you know the results when I compile again to 3910 or higher, and if there's any different in appearance or frame rate since the PaintImage bug fix. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user