GdPicture image identifier.
The left destination of the halo.
The top destination of the halo.
The halo radius.
Example





In This Topic

FxHalo Method (GdPictureImaging)

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

Parameters

ImageID
GdPicture image identifier.
Left
The left destination of the halo.
Top
The top destination of the halo.
Radius
The halo radius.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Image Processing" Demo.
Example
Adding a halo effect to your 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("image.jpg", true);
 
    // Set the location and the size for the effect.
    int left = 1000;
    int top = 500;
    int radius = 500;
 
    // Apply the halo effect to your image.
    gdpictureImaging.FxHalo(imageID, left, top, radius);
    gdpictureImaging.SaveAsJPEG(imageID, "image.jpg");
    gdpictureImaging.ReleaseGdPictureImage(imageID);
}
See Also