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. Assume your canvas draws everything (bitmaps, paths,...) into a global Bitmap object "mBitmap". When I do a getPixels() on mBitmap into an array and sharpen the image, I simply see the curve in back but background bitmap seems OK. Maybe there is something I need to do with the canvas to merge path with the background bitmap? Thanks. On Dec 5, 7:30 am, Mike Reed <[email protected]> wrote: > The color seems fine. Can you enclose a code-snippet, for the draw and > thegetPixels() 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]> 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 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 is correct but color > >> > isn't. Is there anything I need to do before calling Bitmap.getPixels > >> > ()? > > >> > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

