GdPicture.NET Reference Guide
FxEqualizeIntensity Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : FxEqualizeIntensity Method
GdPicture Image Identifier.
Performs an automatic contrast enhancement on a GdPicture image or on an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxEqualizeIntensity( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxEqualizeIntensity( 
   int ImageID
)
public function FxEqualizeIntensity( 
    ImageID: Integer
): GdPictureStatus; 
public function FxEqualizeIntensity( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxEqualizeIntensity( 
   int ImageID
) 
public:
GdPictureStatus FxEqualizeIntensity( 
   int ImageID
) 

Parameters

ImageID
GdPicture Image Identifier.

Return Value

A member of the GdPictureStatus enumeration.
Example
Equalizing the image's histogram intensities
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.FxEqualizeIntensity(ImageID)
   oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
SetROI Method
ResetROI Method