libUEMF
A portable library for reading and writing WMF, EMF and EMF+ files
|
#include <uwmf.h>
Data Fields | |
uint32_t * | table |
Array Buffer for constructing the WMF in memory. | |
size_t | allocated |
Slots in the buffer. | |
size_t | chunk |
Number to add if a realloc is required. | |
uint32_t | lolimit |
Lowest unoccupied table slot, may be a hole created by a deleteobject. | |
uint32_t | hilimit |
Highest table slot occupied (currently) | |
uint32_t | peak |
Highest table slot occupied (ever) | |
The various create functions need a place to put their handles, these are stored in the table below. We don't actually do anything much with these handles, that is up to whatever program finally plays back the WMF, but we do need to keep track of the numbers so that they are not accidentally reused. (Also WMF files have rules about how object handles must be numbered, for instance, the lowest possible number must always be used. These are different from EMF object handles.) This structure is used for staying in conformance with these rules.
There are no stock objects in WMF files.