HPGL to BMP
Posted: 10 Aug 2016, 21:15
Hi,
I'm trying to convert an HPGL image to bitmap using your demo library.
However, the result is just a blank image 146x201 pixels. Why? The HPGL source file is attached.
Addionally, how can I specify the resolution when saving a bitmap (e.g. 150 DPI)?
I'm trying to convert an HPGL image to bitmap using your demo library.
Code: Select all
using CADImport.HPGL2;
using System.Drawing.Imaging;
//...
HPGLImage img = new HPGLImage();
img.LoadFromFile(@"C:\00006.hpgl");
img.SaveToFile(@"C:\00006.bmp", ImageFormat.Bmp, img.Extents, PixelFormat.Format24bppRgb);
Addionally, how can I specify the resolution when saving a bitmap (e.g. 150 DPI)?