private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { if (FCADImage == null) { return; } FCADImage.Draw(e.Graphics); }
private void Form1_Paint(object sender, PaintEventArgs e) { if (_cadImage != null) { RectangleF R; R = new RectangleF(0, 0, 500, 500); R.Height = (float)(R.Width * _cadImage.Extents.Height / _cadImage.Extents.Width); // width of image is 500, height depends on height/width of the drawing _cadImage.Draw(e.Graphics, R); } }