[Gambas-user] gb3: DrawAlpha

Kevin Fishburne kevinfishburne at ...1887...
Tue Jul 5 22:10:12 CEST 2011


On 07/05/2011 03:49 PM, Kevin Fishburne wrote:
> 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.

Still no dice with the newest revision. Any ideas about what that error 
message could mean?

-- 
Kevin Fishburne
Eight Virtues
www: http://sales.eightvirtues.com
e-mail: sales at ...1887...
phone: (770) 853-6271





More information about the User mailing list