|
ResizePenData
- 0 2.0
Scales ink in an HPENDATA object into an arbitrarily sized rectangle.
BOOL ResizePenData( HPENDATA hpndt, LPRECT lprect )
Parameters
hpndt
Handle to a pen data object.
lprect
Address of a bounding rectangle, or NULL.
Return Value
Returns TRUE if successful; otherwise, the return value is FALSE.
Comments
This function changes the physical size of the object without changing the
meaning of the measurements. Use the MetricScalePenData function to convert the data to one of the supported metric modes of
measurement.
ResizePenData physically resizes the data in hpndt to the bounding rectangle dimensions given by the lprect parameter. Data from hpndt is mapped to the new rectangle. If lprect is NULL, this function recalculates the bounding rectangle (the rectBound member in the PENDATAHEADER structure). For example, consider the case of pen data with PDTS_HIMETRIC
scaling bounded by the square (500, 600, 1500, 1600). To double the size, set lprect to (500, 600, 2500, 2600).
See Also
OffsetPenData, MetricScalePenData, PDTS_
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|