• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Setting brightness

Started by gaara, 14 August 2008, 16:42:12

Previous topic - Next topic

gaara

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  ;)

Galfar

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.

gaara

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 ;)

Galfar

"I understand there is not for shadow,highlight and Gamma right?"

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

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name:
Email:

Shortcuts: ALT+S save/post or ALT+P preview

SMF spam blocked by CleanTalk