GdPicture image identifier.
Example





In This Topic

FxSepia Method (GdPictureImaging)

In This Topic
Performs sepia effect on a GdPicture image or on an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxSepia( _
   ByVal ImageID As Integer _
) As GdPictureStatus
public GdPictureStatus FxSepia( 
   int ImageID
)
public function FxSepia( 
    ImageID: Integer
): GdPictureStatus; 
public function FxSepia( 
   ImageID : int
) : GdPictureStatus;
public: GdPictureStatus FxSepia( 
   int ImageID
) 
public:
GdPictureStatus FxSepia( 
   int ImageID
) 

Parameters

ImageID
GdPicture image identifier.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
Example
Performing a sepia effect on a grayscale or colored 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("color_image.jpg", true);
 
    // Applying the sepia effect to an image.
    gdpictureImaging.FxSepia(imageID);
    gdpictureImaging.SaveAsJPEG(imageID, "color_image.jpg");
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also