I want to display a dwg file in a web map page, so I want to convert a dwg to raster within a curtain extent rather than the full extent.
e.g.
My maps’s current extent is {xMin: -18447, yMin: -5665, xMax: -15919, yMax: -3683} and size is 1200x800, so I want to convert the dwg file within this extent to a 1200x800 png file.
I have observed your requirements and have not been able to completely undrestand them. Can you please share the source DWG file along with used sample code and desired output PNG file. We will investigate the issue further on our end to help you out. Moreover, at present Aspose.CAD support exporting a layer or layers to raster image formats and not partial portion among DWG layers.