GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / DrawLineTextureFromFile 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.
Specifies the x-coordinate of the starting point of the line.
Specifies the y-coordinate of the starting point of the line.
Specifies the x-coordinate of the ending point of the line.
Specifies the y-coordinate of the ending point of the line.
The width, in pixel, of the pen used to draw the line.
Set to True to apply the Antialiasing algorithm else False.





In This Topic
DrawLineTextureFromFile Method (GdPictureImaging)
In This Topic
Draws a textured line on a GdPicture image using a texture from a file.
Syntax
'Declaration
 
Public Function DrawLineTextureFromFile( _
   ByVal ImageID As Integer, _
   ByVal TextureFilePath As String, _
   ByVal SrcLeft As Integer, _
   ByVal SrcTop As Integer, _
   ByVal DstLeft As Integer, _
   ByVal DstTop As Integer, _
   ByVal PenWidth As Integer, _
   ByVal AntiAlias As Boolean _
) As GdPictureStatus
public GdPictureStatus DrawLineTextureFromFile( 
   int ImageID,
   string TextureFilePath,
   int SrcLeft,
   int SrcTop,
   int DstLeft,
   int DstTop,
   int PenWidth,
   bool AntiAlias
)
public function DrawLineTextureFromFile( 
    ImageID: Integer;
    TextureFilePath: String;
    SrcLeft: Integer;
    SrcTop: Integer;
    DstLeft: Integer;
    DstTop: Integer;
    PenWidth: Integer;
    AntiAlias: Boolean
): GdPictureStatus; 
public function DrawLineTextureFromFile( 
   ImageID : int,
   TextureFilePath : String,
   SrcLeft : int,
   SrcTop : int,
   DstLeft : int,
   DstTop : int,
   PenWidth : int,
   AntiAlias : boolean
) : GdPictureStatus;
public: GdPictureStatus DrawLineTextureFromFile( 
   int ImageID,
   string* TextureFilePath,
   int SrcLeft,
   int SrcTop,
   int DstLeft,
   int DstTop,
   int PenWidth,
   bool AntiAlias
) 
public:
GdPictureStatus DrawLineTextureFromFile( 
   int ImageID,
   String^ TextureFilePath,
   int SrcLeft,
   int SrcTop,
   int DstLeft,
   int DstTop,
   int PenWidth,
   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.
SrcLeft
Specifies the x-coordinate of the starting point of the line.
SrcTop
Specifies the y-coordinate of the starting point of the line.
DstLeft
Specifies the x-coordinate of the ending point of the line.
DstTop
Specifies the y-coordinate of the ending point of the line.
PenWidth
The width, in pixel, of the pen used to draw the line.
AntiAlias
Set to True to apply the Antialiasing algorithm else False.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
Supported formats are listed here: http://www.gdpicture.com/solutions/supported-formats/.

This method requires the Image Documents component to run.

See Also