cart: empty [ Login ]

out of memory exception

1 
McGum
7/11/2019 9:15 AM
Hi Wout, attached a DWG what throw the following excpeiotn with this code: C# Code:
Code:
var model = DwgReader.Read(file); var width = 1044; var height = 652; var conf = new GraphicsConfig(new ArgbColor(255, 255, 255, 255)) { BackColor = new ArgbColor(200, 255, 255, 255) }; var bitmap = WW.Cad.IO.ImageExporter.CreateAutoSizedBitmap(model, Matrix4D.Identity, conf, SmoothingMode.HighQuality, new Size(width, height))
Exception: ExceptionType: System.OutOfMemoryException On: WW.Cad.IO.ImageExporter.CreateAutoSizedBitmap StackTrace: at System.Drawing.Drawing2D.LinearGradientBrush..ctor(PointF point1, PointF point2, Color color1, Color color2) at .( , GraphicsPath , ArgbColor , ArgbColor ) at .( ) at WW.Cad.Drawing.GDI.GDIGraphics3D.Draw(Graphics graphics, Rectangle drawingBounds, Matrix4D transform, Color backColor) at WW.Cad.IO.ImageExporter.CreateBitmap(DxfModel model, Matrix4D transform, GraphicsConfig graphicsConfig, SmoothingMode smoothingMode, Int32 width, Int32 height) at WW.Cad.IO.ImageExporter.CreateAutoSizedBitmap(DxfModel model, Matrix4D transform, GraphicsConfig graphicsConfig, SmoothingMode smoothingMode, Size maxSize)
McGum
7/18/2019 8:56 AM
any News?
Wout
7/26/2019 5:00 AM
Hi, I've tweaked the hatch gradient rendering to fall back to non-gradient when the gradient points get too close together. Please download the latest version. - Wout
Wout
7/29/2019 11:39 AM
I've re-uploaded, something went wrong with the deployment. - Wout
1