How to export a .dwg drawing to a raster image (.bmp, .jpeg, .png)?

  1. FAQ
  2. »
  3. Export Questions

To export a dwg drawing to a raster image file:

  1. Get the device for bitmap creation.
  2. Load the RxRasterServices module.
  3. Set the raster image parameters (e.g., width, height, bits per pixel, etc.).
  4. Call the saveRasterImage() method of the raster services object.

For more details, see sources of TD_RasterExport module (Kernel\Exports\RasterExport\).