Win32Prn() > Print output methods xHarbour Developers Network  

oWin32Prn:line()

Prints a line

Syntax

:line( <nX1>, <nY1>, <nX2>, <nY2> ) --> lSuccess

Arguments

<nX1> and <nY1>
These two numeric values are the X and Y coordinates of the start point of a line.
<nX2> and <nY2>
These two numeric values are the X and Y coordinates of the end point of a line.

Description

Method :line() accepts the coordinates of the start and en point for a line and draws the line using the current pen. The pen must be selected previously with method :setPen().

The method returns a logical value indicating success of the operation.


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe