Posting my solution here in case anyone runs into the same problem,.
You can set the alpha to 0xFF using the DST_ATOP mode. Here's my code
to extract the alpha and colors properly :
// HACK : We need to force the alpha to 0xFF, or getPixels will
return us black for the RGB
I'll manage to trim down the software a little bit later so that we
can just focus on the issue or the thing I did something wrong on.
Before I do that, imagine you use the Finger Paint example in
ApiDemos. Before your canvas draw the path, you draw a background
Bitmap bgBitmap first.
The color seems fine. Can you enclose a code-snippet, for the draw and
the getPixels() call?
thanks
On Thu, Dec 4, 2008 at 5:55 PM, jman [EMAIL PROTECTED] wrote:
It's 50% transparent, i.e. alpha channel is 0x80, paint color is
0x8000ff00
On Dec 4, 8:52 am, Robert Green [EMAIL PROTECTED]
Did you mean partially transparent green or fully transparent?
On Dec 4, 1:21 am, jman [EMAIL PROTECTED] wrote:
I painted a transparent green curve on top of a background bitmap.
When I use Bitmap.getPixels() to get the result into byte array, I
always get a black curve. The curve position
It's 50% transparent, i.e. alpha channel is 0x80, paint color is
0x8000ff00
On Dec 4, 8:52 am, Robert Green [EMAIL PROTECTED] wrote:
Did you mean partially transparent green or fully transparent?
On Dec 4, 1:21 am, jman [EMAIL PROTECTED] wrote:
I painted a transparent green curve on top
5 matches
Mail list logo