CadExportImage
Vecad CadExportImage — render model space to a raster file (PNG/JPG/BMP by extension) of pixelWidth × pixelHeight.
std::int32_t CadExportImage (
YuHandle hDwg,
const char* szFileName,
std::int32_t pixelWidth,
std::int32_t pixelHeight
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - szFileName (const char*)
- NUL-terminated UTF-8 string.
- pixelWidth (std::int32_t)
- Integer value.
- pixelHeight (std::int32_t)
- Integer value.
Return Value
Nonzero (TRUE) on success, 0 (FALSE) on failure.
Remarks
Uses the same per-document PrintSetup as PDF export; rendering lives in yucad_qt (write_image).