Re: [android-developers] Re: Change Hue on Image

2010-05-16 Thread nayana urs
thanks a lot do u have any source code for slideshow with regards Nayana On Sun, May 16, 2010 at 10:41 AM, pkc poisonkimc...@gmail.com wrote: Here you go. BTW, I have to give credit to where it's due. This is a port of ColorMatrix by Grant Skinner. protected float

Re: [android-developers] Re: Change Hue on Image

2010-05-15 Thread nayana urs
hi thanks for your solution can u please tell me what implementation should be there in cleanvalue(float,float)method with regards Nayana On Sat, May 15, 2010 at 2:39 AM, pkc poisonkimc...@gmail.com wrote: Just wanted to share my solution. I got this idea from a flash script. I have a

[android-developers] Re: Change Hue on Image

2010-05-15 Thread pkc
Here you go. BTW, I have to give credit to where it's due. This is a port of ColorMatrix by Grant Skinner. protected float cleanValue(float p_val, float p_limit) { return Math.min(p_limit,Math.max(-p_limit,p_val)); } On May 16, 12:16 

[android-developers] Re: Change Hue on Image

2010-05-14 Thread pkc
Just wanted to share my solution. I got this idea from a flash script. I have a slider that adjust the value, where is ranges from 0 to 360. public void adjustHue(ColorMatrix cm, float value) { value = cleanValue(value,180f)/180f*(float)Math.PI;