You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Drawing (Shapes) > DrawFilledClosedCurve Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.DrawFilledClosedCurve Method

Draws a filled closed curve on a GdPicture image.

C#
public GdPictureStatus DrawFilledClosedCurve(
    int ImageID, 
    System.Drawing.Point arPoints, 
    Color FillColor, 
    Single Tension, 
    FillMode FillMD, 
    Boolean AntiAlias
);
Visual Basic
Public Function DrawFilledClosedCurve(
    ByVal ImageID As Integer, 
    ByVal arPoints() As System.Drawing.Point, 
    ByVal FillColor As Color, 
    ByVal Tension As Single, 
    ByVal FillMD As FillMode, 
    ByVal AntiAlias As Boolean
) As GdPictureStatus
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
arPoints 
Array of System.Drawing.Point that specifies the coordinates that the cardinal spline passes through.  
FillColor 
Color Object. You can build a Color Object using the ARGB() function. Color used to fill the polygon.  
Tension 
Nonnegative real number that specifies how tightly the spline bends as it passes through the points. A value of 0 specifies that the spline is a sequence of straight lines. As the value increases, the curve becomes fuller. The default value is 0.5f.  
FillMD 
Specifies how to fill a closed area that is within another closed area and that is created when the curve or path passes over itself. A member of the Drawing2D.FillMode enumeration.  
AntiAlias 
Set to True to apply the Antialiasing algorithm else False.  
Returns

A member of the GdPictureStatus enumeration.

If the first and last coordinates in the points array are not identical, a line is drawn between them to close the polygon.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.