On Apr 8, 2012, at 2:57 PM, Christian Schmitz wrote:
> Am 08.04.2012 um 22:47 schrieb Brad Hutchings:
>
>> Subject says it all. I want my plugin method to return a picture where
>> HasAlphaChannel is true. Here's how I'm building the picture:
>> And I'm stumped. I'm filling the result with all kinds of semi-transparent
>> pixels, and they are coming out fully opaque. Further, when I check the
>> result of my plugin method in the Real Studio debugger, HasAlphaChannel is
>> false.
>
>
> you use kRBPixelBGRX32. What else could happen when you tell RB that your
> picture has no alpha?
>
> Greetings
> Christian
Here are the choices:
enum RBPixelType
{
kRBPixelRGB24 = 1, // 3 bytes/pixel: Red, Green,
Blue
kRBPixelBGR24, // 3 bytes/pixel: Blue, Green,
Red
kRBPixelXRGB32, // 4 bytes/pixel: Unused, Red,
Green, Blue
kRBPixelBGRX32 // 4 bytes/pixel: Blue, Green,
Red, Unused
};
Funny thing is that whichever one I pick yields the same resulting component
arrangement. If I pass in "5" through "10", thinking maybe this enum didn't get
updated, I get a nil picture back. Console (WE) app.
-Brad
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>