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 channel
OK, I think the trouble is because I create a bitmap with config
ARGB_ for image manipulation in case anyone out there is
interested. After I switch to RGB_565, then it draws the transparent
curve successfully.Not only that, when you ship the ARGB_
bitmap to the image cropper, it se
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. As
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 PROT
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
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 positi
6 matches
Mail list logo