Author Topic: Setting brightness  (Read 1398 times)

Offline gaara

  • Imaging User
  • *
  • Posts: 3
    • View Profile
Setting brightness
« 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  ;)

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 312
    • View Profile
    • Galfar's Homepage
Re: Setting brightness
« Reply #1 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.
Code: [Select]
{ 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.

Offline gaara

  • Imaging User
  • *
  • Posts: 3
    • View Profile
Re: Setting brightness
« Reply #2 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 ;)

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 312
    • View Profile
    • Galfar's Homepage
Re: Setting brightness
« Reply #3 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?