CadExtractImage
Extracts a preview bitmap of a drawing file into the caller's buffer as a Windows BMP (allocate 250 000 bytes).
std::uint32_t CadExtractImage (
const char* szFileName,
unsigned char* Buffer
);
Parameters
- szFileName (const char*)
- NUL-terminated UTF-8 string.
- Buffer (unsigned char*)
- Caller-allocated buffer of at least 250 000 bytes; receives a Windows BMP.
Return Value
Number of bytes written to the buffer (the BMP size), or 0 on failure.