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





In This Topic
FxEmboss(Int32,Color) 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 Color _
) As GdPictureStatus
public GdPictureStatus FxEmboss( 
   int ImageID,
   Color BackColor
)
public function FxEmboss( 
    ImageID: Integer;
    BackColor: Color
): GdPictureStatus; 
public function FxEmboss( 
   ImageID : int,
   BackColor : Color
) : GdPictureStatus;
public: GdPictureStatus FxEmboss( 
   int ImageID,
   Color BackColor
) 
public:
GdPictureStatus FxEmboss( 
   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.
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