L_PntBrushLineTo

#include "LtPnt.h"

L_LTPNT_API L_INT L_PntBrushLineTo(pPaint, UserDC, nX, nY)

pPAINTHANDLE pPaint;

pointer to a paint handle

L_HDC UserDC;

handle to the device context

L_INT nX;

x position

L_INT nY;

y position

Draws a paintbrush stroke from the current position to the specified point.

Parameter

Description

pPaint

Pointer to a paint handle.

UserDC

Handle to a device context, such as a screen, to use as a display surface. This parameter can also be NULL. The mapping mode of the device context must be MM_TEXT.

nX

Specifies the x-coordinate of the new position.

nY

Specifies the y-coordinate of the new position.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The current position, which serves as the starting point for this function, is set using the L_PntBrushMoveTo function. If L_PntBrushMoveTo is not been called before L_PntBrushLineTo, the default starting point is (0, 0).

The paintbrush stroke will be drawn using the current paintbrush properties. To determine the current paintbrush properties, call L_PntGetProperty. To set or change the current shape properties, call L_PntSetProperty. For more information on the shape properties, refer to the PAINTBRUSH structure.

If UserDC is not NULL, the toolkit will paint the paintbrush stroke on the specified device context. If UserDC is NULL, the paintbrush stroke will not be painted on a device context.

If a bitmap has been set using the L_PntSetMetrics function, the paintbrush stroke will be drawn on the specified bitmap. If UserDC is not NULL and a bitmap has been set using the L_PntSetMetrics function, then the paintbrush stroke will be drawn to both the device context and the bitmap.

Required DLLs and Libraries

LTPNT

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Digital Paint C API Help