CompressPenData

  1. 0

Compresses or decompresses the data in an HPENDATA object.

int CompressPenData( HPENDATA hpndt, UINT fuFlags, DWORD dwReserved )

Parameters

hpndt

Handle to the HPENDATA object.

fuFlags

Specifies whether to compress or decompress the data, as follows:

Constant
Description
CMPD_COMPRESS
Compress the pen data.
CMPD_DECOMPRESS
Decompress the pen data.

dwReserved

Must be 0.

Return Value

This function returns one of the following:

Constant
Description
PDR_OK
Successful completion. Redundant operations, such as compressing an HPENDATA object that has already been compressed, are not errors.
PDR_ERROR
Illegal parameter or other error.
PDR_MEMERR
Memory error.
PDR_PNDTERR
Invalid pen data.
PDR_VERSIONERR
Could not convert old pen data.

Comments

This function replaces the the version 1.0 Pen API function CompactPenData, which is supported for compatibility only.

For a discussion of data compression, see "Compressing Pen Data" in Chapter 4, "The Inking Process."

See Also

CompactPenData
, TrimPenData

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database