GdPicture.NET Reference Guide
FxHalo Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : FxHalo Method
GdPicture Image Identifier.
The left destination of the halo.
The top destination of the halo.
The halo radius.
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 function FxHalo( 
    ImageID: Integer;
    Left: Integer;
    Top: Integer;
    Radius: Integer
): GdPictureStatus; 
public function FxHalo( 
   ImageID : int,
   Left : int,
   Top : int,
   Radius : int
) : GdPictureStatus;

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
Applying a halo effect on the image.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   oGdPictureImaging.FxHalo(ImageID, 50, 100, 30)
   oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
SetROI Method
ResetROI Method