|
|
|
|
|
|
|
Option to wmf_api_create() use provided [*]alloc/free functions |
|
Option to wmf_api_create() check provided command line for --wmf-<option> |
|
Option to wmf_api_create() emit diagnostic information --wmf-diagnostics |
|
Option to wmf_api_create() font directories specified |
|
Option to wmf_api_create() font mappings specified |
|
Option to wmf_api_create() initialize device-layer with supplied function |
|
Option to wmf_api_create() use specified ghostscript fontmap file |
|
Option to wmf_api_create() ignore (some) non-fatal errors --wmf-ignore-nonfatal |
|
Option to wmf_api_create() divert debug reports to specified stream |
|
Option to wmf_api_create() divert error reports to specified stream |
|
Option to wmf_api_create() initialize device-layer with specified module |
|
Option to wmf_api_create() check for module also in specified directories |
|
Option to wmf_api_create() suppress all debug reports --wmf-debug |
|
Option to wmf_api_create() suppress all error reports --wmf-error |
|
Option to wmf_api_create() use specified XML system fontmap file |
|
Option to wmf_api_create() use system fonts, if found |
|
Option to wmf_api_create() write metafile to specified file |
|
Option to wmf_api_create() use specified XML non-system fontmap file |
|
Option to wmf_api_create() use non-system fonts, if found |
|
Compute the Aldus checksum of the metafile's header.
|
|
Creates and initializes an instance of the libwmf library for a specified device layer.
flags . wmf_api_create allocates the wmfAPI structure and initializes the color and font tables, the metafile player, and the device layer. If successful then the pointer to the wmfAPI structure is returned via API_return , otherwise all allocated memory is released and the library exits with an appropriate error.
|
|
Close the device layer, if open, and release all allocated memory attached to the memory manager.
|
|
Set the error state of the library to wmf_E_Assert.
#define WMF_ASSERT(Z,M) if (!(M)) wmf_assert (Z,__FILE__,__LINE__) |
|
Add an name&value to a wmfAttributes structure; returns ptr to value-in-list |
|
Clear/Empty a wmfAttributes structure |
|
Free memory associated with a wmfAttributes structure |
|
Initialize a wmfAttributes structure |
|
Return value of name in a wmfAttributes structure; returns 0 if name not found |
|
Set custom metafile input-stream handler functions.
typedef int (*wmfRead) (void* user_data); typedef int (*wmfSeek) (void* user_data,long position); typedef long (*wmfTell) (void* user_data); wmfRead returns unsigned char cast to int, or EOF (cf. fgetc()) wmfSeek returns (-1) on error, otherwise 0 (cf. fseek()) wmfTell returns (-1) on error, otherwise current position (cf. ftell())
|
|
Allocate memory of specified size and attach to the API's memory manager's internal list.
number * size bytes of memory and adds a reference to it in the memory manager's list. To free the memory, use wmf_free().
|
|
Print message to debug stream.
|
|
Detach memory attached to the API's memory manager's internal list.
|
|
Get estimate of image display size.
*width and image height in *height . wmf_size() is used to get the calculated/estimate width and height of the image, and these values are converted to integer width and height estimates for display.
|
|
Print message to error stream.
|
|
Close metafile input file stream.
|
|
Open file as metafile.
|
|
file input (wmf_file_open): fgetc() |
|
file input (wmf_file_open): fseek() |
|
file input (wmf_file_open): ftell() |
|
Frees memory attached to the API's memory manager's internal list.
|
|
Read the metafile's header.
|
|
Additional wmf-related options: --wmf-error[=yes|no] switch for error reports. --wmf-debug[=yes|no] switch for debug reports, if any. --wmf-ignore-nonfatal[=yes|no] switch to ignore (some) non-fatal errors. --wmf-diagnostics emit diagnostic information. --wmf-fontdir=<path> add <path> to list of font directories. --wmf-sys-fonts use system fonts, if any found. --wmf-sys-fontmap=<file> use system xml-fontmap file <file>. --wmf-xtra-fonts use non-system fonts, if any found. --wmf-xtra-fontmap=<file> use non-system xml-fontmap file <file>. --wmf-gs-fontmap=<file> use ghostscript file <file>. --wmf-write=<file> write metafile to <file>. Report bugs to <http://www.wvware.com/>.
|
|
Creates and initializes an instance of the libwmf library (lite interface) for a specified device layer.
flags . wmf_api_create allocates the wmfAPI structure and initializes the color tables, the metafile player, and the device layer. If successful then the pointer to the wmfAPI structure is returned via API_return , otherwise all allocated memory is released and the library exits with an appropriate error.
wmf_lite_create () ignores command line arguments, if any are given, and does not attempt to set up font mapping. The library should be closed using the corresponding wmf_lite_destroy () function.
|
|
Close the device layer, if open, and release all allocated memory attached to the memory manager.
|
|
Allocate memory of specified size and attach to the API's memory manager's internal list.
size bytes of memory and adds a reference to it in the memory manager's list. To free the memory, use wmf_free().
|
|
Close metafile input memory stream.
|
|
Open metafile in memory.
|
|
memory input (wmf_mem_open): fgetc() equiv. |
|
memory input (wmf_mem_open): fseek() equiv. |
|
memory input (wmf_mem_open): ftell() equiv. |
|
Play the metafile.
The first time (and only the first time) the metafile is played, it first calls device_open() for the device layer specified (and initialized) in wmf_api_create(). Then, and also each subsequent time the metafile is played, it calls device_begin(), plays the metafile (with calls to various other device layer functions), and finally it calls device_end(). device_close() is only ever called via wmf_api_destroy().
|
|
Initializes the metafile player (called by wmf_api_create()) |
|
Print formatted message to debug stream.
|
|
Reads a two-byte sequence from the current metafile, returns U16 |
|
Reads a four-byte sequence from the current metafile, returns U32 |
|
(Re)Allocate memory of specified size and attach to the API's memory manager's internal list.
size bytes of memory and adds a reference to it in the memory manager's list. To free the memory, use wmf_free(). If mem is zero, this is equivalent to a call to wmf_malloc(). If size is zero, the memory is released via wmf_free().
|
|
Scan the metafile.
The bounding box, in device coordinates, is returned in
|
|
Set the device origin coordinate.
|
|
Get image size.
*width and image height in *height . If supplied, the metafile header values are used, otherwise the width and height found by wmf_scan() are used.
|
|
Set a status call-back function.
|
|
Create concatenatation of two strings and attach to the API's memory manager's internal list.
pre into the string and appends post . Use wmf_free() to free the string.
|
|
Increase the size of the internal string buffer.
|
|
Duplicate string and attach to the API's memory manager's internal list.
|
|
Open an uncompressed character output stream.
out is zero, to memory.
|
|
Close an uncompressed character output stream.
*buffer is an array of length length . |
|
Formatted print to character output stream.
|
|
uncompressed char output (wmf_stream_create): rewind() |
|
compressed char output (wmf_ztream_create): rewind() |
|
uncompressed char output (wmf_stream_create): fputs() |
|
compressed char output (wmf_ztream_create): fputs() |
|
Substring search.
needle in string haystack .
|
|
Load wmfxml file and wmf_mem_open() it |
|
Writes to --wmf-write file (which may be WMF or home-made wmfxml) |
|
Open --wmf-write file (which may be WMF or home-made wmfxml) |
|
Close --wmf-write file (which may be WMF or home-made wmfxml) |
|
Open a compressed character output stream.
|
|
Close a compressed character output stream.
|