The FilterGraphics function has the following syntax:
short FAR PASCAL FilterGraphics(lpdv, lpBuf, len)
LPBYTE lpdv; /* points to private data required */
/* by the Universal Printer Driver. */
LPSTR lpBuf; /* points to buffer of graphics data. */
WORD len; /* length of buffer in bytes. */
The following list provides a brief description of the parameters.
Parameter | Description |
lpdv | Points to private data required by the Universal Printer Driver. The FilterGraphics function passes this pointer as an argument to the CBFilterGraphics function which is exported by the Universal Printer Driver. |
lpBuf | Points to the len parameter (which contains the length of the buffer of graphics data in bytes). |
len | Specifies the length of the buffer to which the lpBuf parameter points. |
The return value specifies the number of bytes of processed data if the function is successful.
Prior to returning, the FilterGraphics function must call the WriteSpoolBuf
function which is exported by the Universal Printer Driver. This function has
the following syntax:
short FAR PASCAL WriteSpoolBuf(lpdv, lpNewBuf, newlen)
LPBYTE lpdv; /* points to private data. */
LPSTR lpNewBuf; /* points to buffer of altered graphics data. */
WORD newlen; /* length of buffer in bytes. */
The following list provides a brief description of each parameter.
Parameter | Description |
lpdv | Points to private data which was originally supplied by the Universal Printer Driver. |
lpNewBuf | Points to the len parameter (which contains the length of the buffer of graphics data in bytes). This new graphics data was prepared by the FilterGraphics function. |
len | Specifies the length of the buffer to which the lpNewBuf parameter points. |