Image loading problem with GDI+ API

U

urneel

Hi group,

Iam able load image (*.bmp,&tiff, *jpg) on Cstatic box with bitmap
property using GDI+ API's .
problem is when tiff image of 80MB size or greater takes more time
which is uncosiderable.
and i wud like to reduce the size before any process.

please guide me how to proceed.

thanks in advance
Neel
 
?

=?windows-1252?Q?Marcin_Grze=3Bbski?=

Hi,

When you had problems with OutOfMemory on Image.FromFile(fileName).
You should consider of using Image.FromFile(fileName, true),
that will use the original PixelFormat of loaded image.

But if you want to load only a part of image, then you should
consider of using the specialized library because there is
no such functionality in a .NET 1.X.

HTH
Marcin

(e-mail address removed) napisa?(a):
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top