DrawPenData
1.0 2.0
Displays the
pen data in an HPENDATA object as a trail of visible ink.
void DrawPenData( HDC hdc, LPRECT lprect,
HPENDATA hpndt )
Parameters
hdc
Handle to a
device context. This parameter can also be the handle of a metafile.
lprect
Bounding
rectangle of ink, in client coordinates. Can be NULL.
hpndt
Handle to a
pen data object.
Return Value
This function
does not return a value. If hpndt is NULL, DrawPenData does
nothing.
Comments
DrawPenData draws the pen data in the specified device context
using the GDI Polyline
The
application using DrawPenData must either scale the data points or set
the mapping appropriately if lprect is NULL.
If lprect
is not NULL, the points are scaled into lprect as the drawing is done.
Internally, nondestructive calls to the SetViewportExtEx
DrawPenData draws the ink in the rectangle relative to the
upper-left corner of the window. It ignores any changes that have been made to
the origin of the device context by previous calls to the SetWindowOrg
or SetViewportOrgEx
If the ink is
to be drawn with a width of greater than 1 pixel, the width of the currently
selected pen must be set to achieve the desired result. The width must be set
in client coordinates if a mapping mode is set in the device context. For
example, if the mapping mode has been set to MM_HIENGLISH, the pen width must
be set to a number appropriate for the desired width in MM_HIENGLISH units to
preserve the proper scale of the ink. This scaling is only an issue when the
ink width is greater than 1.
The rendering
of the ink data produced by DrawPenData generally does not exactly match
the rendering produced by the display driver when the data was first collected.
This discrepancy results because DrawPenData and the Polyline
The DrawPenDataEx
See Also