GdPicture.NET Reference Guide
DrawFilledCircleTextureFromGdPictureImage Method (GdPictureImaging)
Example 





GdPicture14 Namespace > GdPictureImaging Class : DrawFilledCircleTextureFromGdPictureImage Method
GdPicture Image Identifier.
GdPicture Image Identifier. Source image used for the texture.
Specifies the x-coordinate of the center of the circle.
Specifies the y-coordinate of the center of the circle.
Diameter of the circle in pixel.
Set to True to apply the Antialiasing algorithm else False.
Draws a filled circle on a GdPicture image using a texture from a GdPicture image.
Syntax
'Declaration
 
Public Function DrawFilledCircleTextureFromGdPictureImage( _
   ByVal ImageID As Integer, _
   ByVal ImageTexture As Integer, _
   ByVal DstLeft As Integer, _
   ByVal DstTop As Integer, _
   ByVal Diameter As Integer, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public GdPictureStatus DrawFilledCircleTextureFromGdPictureImage( 
   int ImageID,
   int ImageTexture,
   int DstLeft,
   int DstTop,
   int Diameter,
   bool AntiAlias
)
public function DrawFilledCircleTextureFromGdPictureImage( 
    ImageID: Integer;
    ImageTexture: Integer;
    DstLeft: Integer;
    DstTop: Integer;
    Diameter: Integer;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawFilledCircleTextureFromGdPictureImage( 
   ImageID : int,
   ImageTexture : int,
   DstLeft : int,
   DstTop : int,
   Diameter : int,
   AntiAlias : boolean
) : GdPictureStatus;
public: GdPictureStatus DrawFilledCircleTextureFromGdPictureImage( 
   int ImageID,
   int ImageTexture,
   int DstLeft,
   int DstTop,
   int Diameter,
   bool AntiAlias
) 
public:
GdPictureStatus DrawFilledCircleTextureFromGdPictureImage( 
   int ImageID,
   int ImageTexture,
   int DstLeft,
   int DstTop,
   int Diameter,
   bool AntiAlias
) 

Parameters

ImageID
GdPicture Image Identifier.
ImageTexture
GdPicture Image Identifier. Source image used for the texture.
DstLeft
Specifies the x-coordinate of the center of the circle.
DstTop
Specifies the y-coordinate of the center of the circle.
Diameter
Diameter of the circle in pixel.
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
Example
Drawing a filled circle texture on the image from a GdPicture Image.
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
If imageId <> 0 Then
   Dim TextureImage As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("texture.tif")
   If TextureImage <> 0 Then
      oGdPictureImaging.DrawFilledCircleTextureFromGdPictureImage(ImageID, TextureImage, 50, 50, 25, True)
      oGdPictureImaging.SaveAsPNG(ImageID, "output.png")
      oGdPictureImaging.ReleaseGdPictureImage(TextureImage)
   Else
      MessageBox.Show("Error: Cannot load texture file:" + oGdPictureImaging.GetStat().ToString())
   End If
   oGdPictureImaging.ReleaseGdPictureImage(ImageID)
Else
   MessageBox.Show("Error: " + oGdPictureImaging.GetStat().ToString())
End If
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members