ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Apply Brightness/Saturation to a Selection only

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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.