Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Todd Kneib  
#1 Posted : Wednesday, August 22, 2007 5:03:13 AM(UTC)
Todd Kneib

Rank: Member

Groups: Member
Joined: 5/10/2006(UTC)
Posts: 7

Thanks: 4 times
The application I'm working on requires me to load a 48x72inch 300dpi (14400 x 21600px) jpeg and send it to our oversized printer. It's been humming along. Now, I am adding colorspace support by using the GraphicsMill package, but I am unable to load the jpeg into a Aurigma.GraphicsMill.Bitmap, as I get this error:
Aurigma.GraphicsMill.UnexpectedException Additional information: Unable to commit memory.

I am able to load the same jpeg using System.Drawing.Image.FromFile (of course then I don't get colorspace support), I even tried first loading it with Image.FromFile and then instantiating the GraphicsMill.Bitmap with that, but I get the same 'Unable...' error.

Code:

Aurigma.GraphicsMill.Bitmap imgToConvert = null;
try
{
   imgToConvert = new Aurigma.GraphicsMill.Bitmap(filename);
}
catch (Exception ex)
{
   System.Diagnostics.Trace.WriteLine("Aurigma failed to open file: '" + filename + "', trying with .Net. Err: " + ex.ToString());
   System.Drawing.Image img = System.Drawing.Image.FromFile(filename);
   imgToConvert = new Aurigma.GraphicsMill.Bitmap((System.Drawing.Bitmap)img);
}


Is there something I need to do to get GraphicsMill.Bitmap to load the jpeg?

Thanks,
Todd Kneib
Centrics

Edited by user Monday, December 17, 2007 1:23:58 PM(UTC)  | Reason: Not specified

Alex Kon  
#2 Posted : Thursday, August 23, 2007 6:40:07 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello,

Yes, Todd, we have some issues with huge bitmaps. I can suggest you to read HOWTO: Processing huge bitmaps article.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.