Thanks hhenne
I'm trying the following
Paint invert = new Paint();
invert.setStyle(Paint.Style.FILL);
invert.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.XOR));
pictCanvas.drawRect(0, 0, 1170, 800, invert);
image.invalidate();
Not having any success,
On Wed, Feb 8, 2012 at 12:48 PM, hhenne wrote:
> You can make a Paint and setXfermode to XOR (PixelXorXfermode) and the
> draw a solid rect on the bitmap. It will invert every bit - so when
> you do it once more you are back to non-inverted. I am doing so in my
> keyboard (http://www.maxikeys.com
You can make a Paint and setXfermode to XOR (PixelXorXfermode) and the
draw a solid rect on the bitmap. It will invert every bit - so when
you do it once more you are back to non-inverted. I am doing so in my
keyboard (http://www.maxikeys.com) to invert pressed keys - the room
between the keys have
I don't know if there is 'negative' function, but just go through the
pixels and transform them to your desire.
On Feb 7, 7:18 am, New Developer wrote:
> Is there a process/function to invert the colors of an entire bitmap or
> canvas ?
> Not just a black and white image that becomes white and b
4 matches
Mail list logo