Vampyre Imaging Library Forum

Imaging Category => Help & Questions => Topic started by: gaara on 14 August 2008, 16:42:12

Title: Setting brightness
Post by: gaara on 14 August 2008, 16:42:12
Pardon for a simple question Can You tell me how to set brightness what do I need to do it because I need to change an image for shadow highlight and that stuff I can resize rotate but I cant find the correct function or do I have to handle the pixeles by myself? please  ;)
Title: Re: Setting brightness
Post by: Galfar on 14 August 2008, 17:01:19
You can change image brightness using ModifyContrastBrightness method
of TImagingCanvas class. Usage is shown in LCL Imager demo.

{ Modifies image contrast and brightness. Parameters should be in range <-100; 100>.}
procedure ModifyContrastBrightness(Contrast, Brightness: Single);


Note: This is not yet part of offcial Imaging release, you must use Imaging's Subversion repository
to get this code.
Title: Re: Setting brightness
Post by: gaara on 14 August 2008, 19:54:56
I guess I finally found how it works my mistake sorry emmm by the way as far I understand there is not for shadow,highlight and Gamma right? can You give me a hint or link to study and apply those procedures or functions :) thanks of course I will support the project ;)
Title: Re: Setting brightness
Post by: Galfar on 26 August 2008, 22:11:14
"I understand there is not for shadow,highlight and Gamma right?"

I don't really understand what do you mean. Could tou clarify that?