Unable to Save as Bitmap
McGum
3/13/2019 7:20 AM
|
---|
Hi Wout,
I try to save attached DWG to Image:
var conf = new GraphicsConfig(new ArgbColor(255, 255, 255, 255)) { BackColor = new ArgbColor(200, 255, 255, 255) };
Bitmap bitmap = ImageExporter.CreateAutoSizedBitmap(
model,
Matrix4D.Identity,
conf,
SmoothingMode.HighQuality,
new Size(width, height)
);
And get a Exception OutOfMemory (with 32GB RAM ;) )
Can you find the issue in the DWG or your code?
tanks,
Michael
|
McGum
3/15/2019 2:19 PM
|
---|
Any News?
|
rammi
3/15/2019 3:33 PM
|
---|
There is a system limit to Bitmap size, so my guess is that your width and height require a too large Bitmap.
Can you tell which values you are using?
-- Rammi
|
McGum
3/17/2019 11:12 AM
|
---|
Hi Rammi,
w: 1485
h: 670
|
Wout
3/18/2019 6:15 PM
|
---|
Hi,
I've fixed the problem, there was an issue with hatches with a linear gradient where the hatch boundary were flat polylines (zero area). You can download the latest version from Your resources in your user profile.
- Wout
|
McGum
3/19/2019 7:52 AM
|
---|
"Unauthorized Download
You are not authorized to download this file. You need to purchase a new product license or renew your existing product license."
|