GDI+ error
Chris Smith
1/19/2022 3:22 AM
|
---|
Hi Wout,
The latest few versions of CadLib seem to be a bit more susceptible to "A generic error occurred in GDI+".
This seems to happen when some particular graphic is massively bigger or smaller than the view extent.
Using the attached DWG / code, you can see that we're rendering a very small extent but there are some very large graphics in the drawing.
This (mostly) worked fine in 4.0.38.86 but fails in 4.0.39.X. I say mostly because we definitely have still found cases where very very small graphics rendered in a very large extent still caused issues on that older version.
Code (assuming linqpad):
C# Code: void Main( |
Chris Smith
1/26/2022 10:15 PM
|
---|
Hi Wout &c,
Just wondering if there's anything that can be done about this?
I assume the "CreateDrawables" call in the gdiGraphics3D is creating a bunch of segmented lines, is there a way we can filter those before calling CreateBitmap?
Perhaps we can be looking for things that won't convert well to Float or something...
Cheers,
Chris
|