GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / FxColorize Method
GdPicture image identifier.
Hue [0 - 100].
Saturation [0 - 100].
Luminosity [0 - 100].
Example





In This Topic
FxColorize Method (GdPictureImaging)
In This Topic
Performs "colorization" effect on a GdPicture image or on an area of a GdPicture image defined by SetROI().
Syntax
'Declaration
 
Public Function FxColorize( _
   ByVal ImageID As Integer, _
   ByVal Hue As Single, _
   ByVal Saturation As Single, _
   ByVal Luminosity As Single _
) As GdPictureStatus
public GdPictureStatus FxColorize( 
   int ImageID,
   float Hue,
   float Saturation,
   float Luminosity
)
public function FxColorize( 
    ImageID: Integer;
    Hue: Single;
    Saturation: Single;
    Luminosity: Single
): GdPictureStatus; 
public function FxColorize( 
   ImageID : int,
   Hue : float,
   Saturation : float,
   Luminosity : float
) : GdPictureStatus;
public: GdPictureStatus FxColorize( 
   int ImageID,
   float Hue,
   float Saturation,
   float Luminosity
) 
public:
GdPictureStatus FxColorize( 
   int ImageID,
   float Hue,
   float Saturation,
   float Luminosity
) 

Parameters

ImageID
GdPicture image identifier.
Hue
Hue [0 - 100].
Saturation
Saturation [0 - 100].
Luminosity
Luminosity [0 - 100].

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
Example
Performing a "colorization" effect on a jpeg image.
using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
{
    // LoadInMemory parameter is set to true in order to be able to update the input file.
    int imageID = gdpictureImaging.CreateGdPictureImageFromFile("image.jpg", true);
 
    // Performing "colorization" effect.
    gdpictureImaging.FxColorize(imageID, 180, 50, 100);
    gdpictureImaging.SaveAsPNG(imageID, "image.png");
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also