easy rendering for Rhino in Windows
Tags:
Permalink Reply by Scott Davidson on March 29, 2011 at 11:24am
Permalink Reply by David Powell on March 29, 2011 at 1:22pm Hello Scott:
The following traces are from the Rhino message bar after attempting to "Save with alpha channel" from the Flamingo nXt .NET window. (Rendered image information is Engine:Default, Zoom:1.00, Resolution:758x398):
General exception occurred
Exception: A generic error occurred in GDI+.
Stack trace:
at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(String filename, ImageFormat format)
at FlamingoNXtNet.Util.SaveBitmap(Bitmap bitmap, String filename) in D:\Flamingo3\2305_20110310_0700\V4\src\nxt\FlamingoNXtUtilites.cs:line 1460
at FlamingoNXtNet.FlamingoNXtRenderDisplay.SaveRenderImageAs(String filename, Boolean bSaveAlpha) in D:\Flamingo3\2305_20110310_0700\V4\src\nxt\FlamingoNXtRenderDisplay.cs:line 433
Error saving bitmap G:\NPT\Tunelink\TuneLink_Auto_DemoStand\Images\test.png
Permalink Reply by John Morse on March 31, 2011 at 10:48am Hello,
This is a unfortunately this is a fairly generic error. I have done some research on the problem and it sounds like it could be a problem overwriting an existing file if a bitmap object maintains a lock on the file. Do you see this error every time you try to save with alpha? Does the file happen if you save using a different file name?
Permalink Reply by Owen Keating on March 31, 2011 at 11:01am I'm getting the same issue.
This is the error that I'm getting.
Command: _-Render
General exception occurred
Exception: A generic error occurred in GDI+.
Stack trace:
at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder,
EncoderParameters encoderParams)
at System.Drawing.Image.Save(String filename, ImageFormat format)
at FlamingoNXtNet.Util.SaveBitmap(Bitmap bitmap, String filename) in
D:\Flamingo3\2305_20110310_0700\V4\src\nxt\FlamingoNXtUtilites.cs:line 1460
at FlamingoNXtNet.FlamingoNXtRenderDisplay.SaveRenderImageAs(String
filename, Boolean bSaveAlpha) in
D:\Flamingo3\2305_20110310_0700\V4\src\nxt\FlamingoNXtRenderDisplay.cs:line
433
Error saving bitmap C:\Documents and Settings\OwenMac\Desktop\test2.png
Permalink Reply by David Powell on March 31, 2011 at 11:23am Hello John,
The error does occur every time I try to save a .png with alpha and using different file names does not help. During the error process, a file is generated with the correct filename but with 0 bytes reported as the file size. The error does not occur when saving as .bmp or .tiff (files are saved successfully). I have been able to save .png's with alpha in the past, and I suspect that the error started after updating Flamingo to the 10 Mar Beta release....
Thanks.
Permalink Reply by John Morse on March 31, 2011 at 12:14pm Hello David,
Thanks for the information that gives me a bit more to go on. Flamingo was changed to use built in Windows .NET (GDI+) bitmap saving around the time you mentioned, I will do some more digging around and see what I can find out.
Permalink Reply by John Morse on March 31, 2011 at 12:46pm Hello David,
One more quick question, can you save a PNG file without alpha?
Permalink Reply by Owen Keating on March 31, 2011 at 12:56pm
Permalink Reply by Scott Davidson on March 31, 2011 at 1:08pm Owen -
We are thinking that this might be .NET Problem. Can you download and install this to see it it fixes the problem.
Permalink Reply by Owen Keating on March 31, 2011 at 1:37pm
Permalink Reply by John Morse on March 31, 2011 at 2:00pm
Permalink Reply by John Morse on March 31, 2011 at 2:54pm Hello again, I made a few changes to my test application, it now includes an option to create bitmaps of registered types to your desktop, could you download the new app and let me know if it is able to make PNG files. A message box will appear if an exception is encountered while writing any of the bitmaps.
© 2013 Created by Scott Davidson.