GdPicture.NET Reference Guide
AdjustRGB Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : AdjustRGB Method
GdPicture Image Identifier.
Value to add to the red component [-255 ; 255].
Value to add to the green component [-255 ; 255].
Value to add to the blue component [-255 ; 255].
Increase or decrease the color components of a GdPicture image or of an area of a GdPicture image defined by SetROI() method.
Syntax

Parameters

ImageID
GdPicture Image Identifier.
RedAdjust
Value to add to the red component [-255 ; 255].
GreenAdjust
Value to add to the green component [-255 ; 255].
BlueAdjust
Value to add to the blue component [-255 ; 255].

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
Example
Change the values of the R,G,B color componants of the image.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.AdjustRGB(ImageID, 25, 100, 76)
   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