PAINTTOUCH

typedef struct _PAINTTOUCH
{
   PAINTTOUCHSHAPE nShape;
   PAINTTOUCHCONTENTS nContentsType;
   COLORREF crColor;
   pBITMAPHANDLE pBitmap;
   COLORREF crTransparentColor;
} PAINTTOUCH, L_FAR *pPAINTTOUCH;

The PAINTTOUCH structure contains information about a single paintbrush touch on the painting canvas. A paintbrush stroke is constructed from multiple paintbrush touches.

Member

Description

nShape

An enumeration type that controls the shape of the cross-section (tip) of the brush. For a list of possible values, refer to PAINTTOUCHSHAPE.

nContentsType

An enumeration type that indicates the contents of the paintbrush. For a list of possible values, refer to PAINTTOUCHCONTENTS.

crColor

The COLORREF value that specifies the color to use for the paintbrush when nContentsType is PAINT_TOUCH_CONTENTS_COLOR.

pBitmap

Pointer to the bitmap handle that references the bitmap that contains the paintbrush image when nContentsType is PAINT_TOUCH_CONTENTS_IMAGE. The BITMAPHANDLE pointer should still be valid after setting this field.

crTransparentColor

The COLORREF value that specifies the transparent color of the paintbrush image.

Comments

image\PntTouch.gif

pPAINTTOUCH is a pointer to a PAINTTOUCH structure.