T O P I C R E V I E W |
AndyColmes |
Posted - Jan 04 2012 : 07:50:25 I would like to apply or change Brightness/Saturation in an image but only specified in a Selection. How can I achieve this?
Thanks. |
4 L A T E S T R E P L I E S (Newest First) |
AndyColmes |
Posted - Jan 07 2012 : 01:14:20 Thank you William. |
w2m |
Posted - Jan 06 2012 : 14:37:32 Brightness can assume values from -100 to 512. Contrast can assume values from -100 to 100. Saturation can assume values from 0 to 512.
William Miller |
AndyColmes |
Posted - Jan 06 2012 : 07:39:10 Thanks Fabrizio. It looks like adjustments are confined to a selection if there is one, if not it affects the whole image.
What the recommended limits (min/max) for the Brightness and Contrast values?
|
fab |
Posted - Jan 04 2012 : 09:48:34 Let the user to select a region (in this case a rectangle, but other shapes are available), with:
ImageEnView1.MouseInteract := [miSelect];
Then change brightness/saturation, for example (other ways are available), with:
ImageEnView1.Proc.AdjustBrightnessContrastSaturation(....);
You can also select a region in-code. Example:
ImageEnView1.Select(x1, y1, x2, y2); ImageEnView1.Proc.AdjustBrightnessContrastSaturation(...);
About Select usage look also TImageEnView.SelectionBase. |