Welcome Guest Search | Active Topics | Members

Speed problem Options
Loose Cannon
Posted: Tuesday, July 24, 2007 10:44:32 AM
Rank: Member
Groups: Member

Joined: 7/24/2007
Posts: 1
Points: 0
I just started using Graphics Mill. Everything I've done thus far has been very straightforward with one exception.

The following line executes quickly. The image is a 2550x3300 pixel 24-bit TIFF file.
Aurigma.GraphicsMill.Bitmap bitmap=new Aurigma.GraphicsMill.Bitmap(filename);

The following line executes very slowly. It's basically just creating a duplicate Bitmap (without the image data) with the same size and pixel format as 'bitmap'.
Aurigma.GraphicsMill.Bitmap bitmapFinal=new Aurigma.GraphicsMill.Bitmap(Aurigma.GraphicsMill.RgbColor.White,bitmap.Width,bitmap.Height,Aurigma.GraphicsMill.PixelFormat.Format24bppRgb);

Any idea why the above line would execute so slowly? I have tried several variations but it's only when I specify the color that it runs so slowly. For example...

The following line executes quickly. The only difference is that I didn't specify a default color.
Aurigma.GraphicsMill.Bitmap bitmapFinal=new Aurigma.GraphicsMill.Bitmap(bitmap.Width,bitmap.Height,bitmap.PixelFormat);

I've also tried drawing 'bitmap' into 'bitmapFinal' with a copy operation. That executed quickly (which indicates that memory bandwidth isn't the problem.)

Lastly, I have tried simply creating the Bitmap without specifying the color and then performing a Bitmap::Clear() on it (to specify the fill color that I would have denoted in the constructor.) In that case the Clear() function executes very slowly.

Any ideas?

- LC
Alex Kon
Posted: Sunday, July 29, 2007 9:42:01 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 386
Points: 403
Hello,

Yes, we confirm that issue. It has already been fixed in our development version and this fix will be included into the upcoming release. If it is critical for you please submit case and we will find the most appropriate solution for you.

Best wishes, Alex.
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.