Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / DrawFilledPolygonTextureFromFile Method
GdPicture image identifier.
The texture source file path. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
Array of System.Drawing.Point that specifies the vertices of the polygon.
Specifies how to fill a closed area that is within another closed area and that is created when the polygon or path passes over itself.A member of the Drawing2D.FillMode enumeration.
Set to True to apply the Antialiasing algorithm else False.





In This Topic
    DrawFilledPolygonTextureFromFile Method
    In This Topic
    Draws a filled polygon on a GdPicture image using a texture from a file.
    Syntax
    'Declaration
     
    
    Public Function DrawFilledPolygonTextureFromFile( _
       ByVal ImageID As Integer, _
       ByVal TextureFilePath As String, _
       ByVal arPoints() As Point, _
       ByVal FillMD As FillMode, _
       ByVal AntiAlias As Boolean _
    ) As GdPictureStatus
    public GdPictureStatus DrawFilledPolygonTextureFromFile( 
       int ImageID,
       string TextureFilePath,
       Point[] arPoints,
       FillMode FillMD,
       bool AntiAlias
    )
    public function DrawFilledPolygonTextureFromFile( 
        ImageID: Integer;
        TextureFilePath: String;
        arPoints: Pointarray of;
        FillMD: FillMode;
        AntiAlias: Boolean
    ): GdPictureStatus; 
    public function DrawFilledPolygonTextureFromFile( 
       ImageID : int,
       TextureFilePath : String,
       arPoints : Point[],
       FillMD : FillMode,
       AntiAlias : boolean
    ) : GdPictureStatus;
    public: GdPictureStatus DrawFilledPolygonTextureFromFile( 
       int ImageID,
       string* TextureFilePath,
       Point[]* arPoints,
       FillMode FillMD,
       bool AntiAlias
    ) 
    public:
    GdPictureStatus DrawFilledPolygonTextureFromFile( 
       int ImageID,
       String^ TextureFilePath,
       array<Point>^ arPoints,
       FillMode FillMD,
       bool AntiAlias
    ) 

    Parameters

    ImageID
    GdPicture image identifier.
    TextureFilePath
    The texture source file path. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
    arPoints
    Array of System.Drawing.Point that specifies the vertices of the polygon.
    FillMD
    Specifies how to fill a closed area that is within another closed area and that is created when the polygon or path passes over itself.A member of the Drawing2D.FillMode enumeration.
    AntiAlias
    Set to True to apply the Antialiasing algorithm else False.

    Return Value

    A member of the GdPictureStatus enumeration.
    Remarks
    If the first and last coordinates in the points array are not identical, a line is drawn between them to close the polygon.
    See Also