How to adjust Hue / Saturation of a Bitmap?
<p>I need a way to adjust hue/sat of a Bitmap. So far I found this</p>

<pre><code>public static Bitmap colorize(Bitmap src, float hue, float saturationDelta, float valueDelta) {

    Bitmap b = src.copy(Bitmap.Config.ARGB_8888, true);

    for (int x = 0; x &lt; b.getWidth(); x++) {
        for (int y = 0; y &lt; b.getHeight(); y++) {
            int color = b.getPixel(x, y);
            float[] hsv = new float[3];
            Color.colorToHSV(color, hsv);
            hsv[0] = hue;
            hsv[1] += saturationDelta;
            hsv[2] += valueDelta;
            int newColor = Color.HSVToColor(Color.alpha(color), hsv);
            b.setPixel(x, y, newColor);
        }
    }

    return b;
}
</code></pre>

<p>But it takes like 10 seconds to work on a 400x500 bitmap. Are there any faster ways?</p>

<p>Thanks! :)</p>
