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

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

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

A member of the GdPictureStatus enumeration.

Increase & Decrease contrast

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