GdPicture image identifier.
Background color. A suitable color value can be obtained by using the ARGB() method.
Example





In This Topic

FxEngrave(Int32,Color) Method

In This Topic
Performs engrave effect specifying a background color on a GdPicture image or on an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Overloads Function FxEngrave( _
   ByVal ImageID As Integer, _
   ByVal BackColor As Color _
) As GdPictureStatus
public GdPictureStatus FxEngrave( 
   int ImageID,
   Color BackColor
)
public function FxEngrave( 
    ImageID: Integer;
    BackColor: Color
): GdPictureStatus; 
public function FxEngrave( 
   ImageID : int,
   BackColor : Color
) : GdPictureStatus;
public: GdPictureStatus FxEngrave( 
   int ImageID,
   Color BackColor
) 
public:
GdPictureStatus FxEngrave( 
   int ImageID,
   Color BackColor
) 

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.
Example
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);
}
See Also