CadRasterize
Rasterize a WORLD region to an image at the given resolution.
std::int32_t CadRasterize (
YuHandle hDwg,
const char* szFileName,
double Left,
double Bottom,
double Right,
double Top,
double Resolution
);
Parameters
- hDwg (YuHandle)
- Handle to the drawing, as returned by
CadCreate. - szFileName (const char*)
- NUL-terminated UTF-8 string.
- Left (double)
- Numeric value (double precision).
- Bottom (double)
- Numeric value (double precision).
- Right (double)
- Numeric value (double precision).
- Top (double)
- Numeric value (double precision).
- Resolution (double)
- Numeric value (double precision).
Return Value
Nonzero (TRUE) on success, 0 (FALSE) on failure.
Remarks
Derives the pixel size from the region * resolution and renders via the same OpenGL image path as CadExportImage (the print-setup extents drive the framing).