#5 – This one’s for the starfish – the AdjustHslCommand
Yesterday, we adjusted the colors in our image by targeting the channels. Today, we adjust the image’s hue, saturation, and luminosity with the AdjustHslCommand.
I could practically copy yesterday’s post to today – you need a color image, the Region of Interest requires Photo Pro or Document Imaging, and you can adjust levels by percentage (-100 to 100) or a literal value (-240 to 240).
The break down of the properties:
- AdjustByPercentage – Set to ‘True’, you adjust by percentages. Set to ‘False’, you adjust by a literal value.
- Hue – refers to the pure spectrum colors
- Saturation – the difference of a color against its own brightness
- Luminance – the intensity of light in a given area
- RegionOfInterest – If you don’t set this, your entire image will be processed.
Before:
After (Northwest – hue: –50%, Southwest – saturation: –50%, Northeast – luminance: –50%, Southeast – all three: –50%):
Don’t forget to make a clone of your image if you want to keep the original AtalaImage intact (remember the in-place processing).
Tomorrow’s command is fun – we get to modify an image pixel by pixel.
Also, don’t forget about our DotImage Webinars, and you can follow me on Twitter.