FxEngrave(Int32,GdPictureColor) Method
Performs engrave effect specifying a background color on a GdPicture image or on an area of a
GdPicture image defined by SetROI() method.
Parameters
- ImageID
- GdPicture image identifier.
- BackColor
- Background color. A suitable color value can be obtained by using the ARGB() method.
Return Value
A member of the GdPictureStatus enumeration.
Performing an engrave effect on a GdPicture image with a specified background color.
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);
// Apply the engrave effect to your image using the specified background color.
gdpictureImaging.FxEngrave(imageID, Color.Bisque);
gdpictureImaging.SaveAsJPEG(imageID, "image.jpg");
gdpictureImaging.ReleaseGdPictureImage(imageID);
}