GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / FxEmboss Method / FxEmboss(Int32,GdPictureColor) Method
GdPicture image identifier.
Background color. A suitable color value can be obtained by using the ARGB() method.
Example





In This Topic
FxEmboss(Int32,GdPictureColor) Method
In This Topic
Performs emboss 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 FxEmboss( _
   ByVal ImageID As Integer, _
   ByVal BackColor As GdPictureColor _
) As GdPictureStatus
public function FxEmboss( 
    ImageID: Integer;
    BackColor: GdPictureColor
): GdPictureStatus; 
public function FxEmboss( 
   ImageID : int,
   BackColor : GdPictureColor
) : GdPictureStatus;
public: GdPictureStatus FxEmboss( 
   int ImageID,
   GdPictureColor BackColor
) 
public:
GdPictureStatus FxEmboss( 
   int ImageID,
   GdPictureColor 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.
Remarks
This method is used in the "Image Processing" Demo.
Example
Performing an emboss 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 emboss effect to your image using the specified background color.
    gdpictureImaging.FxEmboss(imageID, Color.Bisque);
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg");
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also