cart: empty [ Login ]

Image from CAD circumference problem

1 
Davide
2/8/2019 2:38 PM
Hello, after reading a dwg file i save a png preview, but when there are some circle there is a problem as a "segmented circumference". For better understanding i have uploaded confidentially a zip with source file dwg and elaborated image png. The resulting image is not good for final users because it does not show the correct drawing, there are some step or configuration missing?
C# Code:
GDIGraphics3D graphics = new GDIGraphics3D(GraphicsConfig.BlackBackgroundCorrectForBackColor); Size maxSize = new Size(1600, 1600); Bitmap bitmap = ImageExporter.CreateAutoSizedBitmap( model, graphics, Matrix4D.Identity, System.Drawing.Color.White, maxSize ); Stream stream; using (stream = File.Create(filename)) { ImageExporter.EncodeImageToPng(bitmap, stream); }
Wout
2/8/2019 3:07 PM
You can increase the number of GraphicsConfig.NoOfArcLineSegments. The default value is 30. A higher value means slower rendering ofcourse. - Wout
1