Android color picker - updating color array
Posted
by zorglub76
on Stack Overflow
See other posts from Stack Overflow
or by zorglub76
Published on 2009-10-09T09:32:29Z
Indexed on
2010/04/28
6:43 UTC
Read the original article
Hit count: 511
Hi all, I'm trying to create a color picker for Android that looks like a minimalistic version of Gimp's. So, it has a hue slider and a rectangle with saturation/value variants of a color chosen in hue slider.
Question: what is the best way to create the rectangle?
Right now, I'm creating an 200x200 array of pixels, but it takes ~5sec to create and display rectangle with that array. And I need colors in rectangle to change whenever I change the value in hue slider...
Rectangle is bitmap, btw. Can I use color matrices on that and how? Any examples?
Thanks in advance!
© Stack Overflow or respective owner