DrawTexturedLine Method

See Also     Examples     Applies To

Draws a textured line into the native GdPicture image. The texture provides from an image file.

Syntax

object.DrawTexturedLine (nSrcLeft, nSrcTop, nDstLeft, nDstTop, nPenWidth, sTextureFilePath, bAntiAlias)

The DrawTexturedLine syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nSrcLeft Required. Long. Specifies the x-coordinate of the starting point of the line.
nSrcTop Required. Long. Specifies the y-coordinate of the starting point of the line.
nDstLeft Required. Long. Specifies the x-coordinate of the ending point of the line.
nDstTop Required. Long. Specifies the y-coordinate of the ending point of the line.
nPenWidth Required. Long. The width in pixel of the pen used to draw the line.
sTextureFilePath Required. String. The texture source file path. If this parameter is empty, prompts the user to select a file.
bAntiAlias Optional. Boolean. Default value is False. Set to True to apply the Antialiasing algorithm else False.

Returns

Long. GdPictureStatus

Remarks

Supported formats are BMP, DIB, RLE, ICO, EMF, WMF, GIF, ANIMATED GIF, JPEG, JPG, JPE, JFIF, PNG, TIFF, MULTIPAGE TIFF, PNM, PPM, PBM, PGM, RPPM, RPGM, RPBM, PCX.
Redistributing the optional gdimgplug.dll library you will also be able to read XPM, XBM, WBMP, TGA, SGI, Sun RAS, PSD, MNG, Kodak PhotoCD files, KOALA files, JP2, J2K, JNG, JBIG, IFF, HDR, Raw Fax G3, EXR, DDS and Dr. Halo files.

Category

Draw (Lines and Shapes)





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.