I am trying to batch convert .dwg CAD images to PNG images in a ASP.NET WebService without displaying the images at all.
Tried something like that:
Code: Select all
CADImage image = CADImage.CreateImageByExtension(inputFilePath);
MemoryStream ms = new MemoryStream();
image.SaveToStream(ms, ImageFormat.Png, new DRect(0.0, 0.0, 500.0, 200.0));
2) The example above uses a fixed sized Rectangle for testing purposes. How to determine the right width/height of the complete loaded CADImage without using any UI logic/controls?
Best Regards
Andreas