Hi All,

I want to fill a bitmap with a colour. I have the a,r,g & b values. The
techinique I'm using is;

    public Bitmap evaluate(Bitmap input) {
        Canvas c = new Canvas(input);
        c.drawARGB(a, r, g, b);
        return input;
    }

But my changes are not apparent in the returned bitmap.

The nature of the application is such that I need to return a bitmap but I'd
rather not have to setPixel for every x & y.

I'm hoping that this is obvious but I couldn't work out why this wasn't
working for the documentation or sample code.

Kind regards,

Gav

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to