You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Brightness / Contrast / Saturation / Gamma > SetBrightness Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SetBrightness Method

Adjust the brightness on a GdPicture image or into an area of a GdPicture image defined by SetROI() function.

C#
public GdPictureStatus SetBrightness(
    int ImageID, 
    int Brightness
);
Visual Basic
Public Function SetBrightness(
    ByVal ImageID As Integer, 
    ByVal Brightness As Integer
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
Brightness 
Brightness adjustment between -100 and 100.  
Returns

A member of the GdPictureStatus enumeration.

Increase & Decrease brightness

'To increase brightness of 10%
m_Stat = oGdPictureImaging.SetBrigtness(ImageID, 10)
'To decrease brightness of 10%
m_Stat = oGdPictureImaging.SetBrigtness(ImageID, -10)
What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.