CadExtractImageMem
Extracts a preview bitmap of an in-memory drawing into the caller's buffer as a Windows BMP (allocate 250 000 bytes).
std::uint32_t CadExtractImageMem (
void* pMem,
unsigned char* Buffer
);
Parameters
- pMem (void*)
- Pointer to the in-memory drawing (NUL-terminated DXF text, the same convention as
CadFileOpenMem). - 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.