set_metafile_bits


handle set_metafile_bits(unsigned size,
                         const byte* buffer)

This function creates a metafile from a given buffer of data.

Parameters

unsigned size

The length (in bytes) of the buffer pointed by Buffer.

byte* buffer

A pointer to a buffer holding the metafile data.

Return

handle

Zero The call failed.
Other A metafile with the specified data was successfuly created.

Notes

The data that is set should be in the enhanced format. To set data for a windows format metafile, use the function set_win_metafile_bits.

The function delete_metafile may be used to delete the metafile when it is no longer required.