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 As Integer, _
ByVal As Integer, _
ByVal As Integer, _
ByVal As Integer _
) As GdPictureStatus
public GdPictureStatus FxHalo(
int ,
int ,
int ,
int
)
public function FxHalo(
: Integer;
: Integer;
: Integer;
: Integer
): GdPictureStatus;
public function FxHalo(
: int,
: int,
: int,
: int
) : GdPictureStatus;
public: GdPictureStatus FxHalo(
int ,
int ,
int ,
int
)
public:
GdPictureStatus FxHalo(
int ,
int ,
int ,
int
)
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.
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);
}
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