We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOther Libraries › How to change saturation with imageadjuster lib
Page Index Toggle Pages: 1
How to change saturation with imageadjuster lib ? (Read 478 times)
How to change saturation with imageadjuster lib ?
May 11th, 2008, 12:31pm
 
How to change saturation with imageadjuster lib ?
Re: How to change saturation with imageadjuster li
Reply #1 - May 19th, 2008, 9:45pm
 
For performance reasons the scope of that library is limited to "simple" adjustements that can be performed directly on RGB values.  Adjusting saturation would require converting to HSB and back to RGB per pixel, so not implemented.

But you could write your own - just loop through the pixels[] array, retrieve the color, retrieve the HSB values, modify S (and/or H, B) as desired, recreate an RGB color from your modified values, stuff it back into the pixels array.

Cheers,
Page Index Toggle Pages: 1