Etan Bukiet
11/17/2004 2:58:00 AM
This can actually be done in the DotNet Framework (without using your own
P/Invoke -- Of course System.Drawing Calls the runtime.)
This is faster than Justin Rogers because he uses reflection to convert the
GDI Pointer back to the managed Image object.
System.IO.Stream stream = System.IO.File.OpenRead(fileName);
System.Drawing.Image Picture = Image.FromStream(stream, false, false);
Look, no Reflection!! and it should be just as fast because no embeded color
management!
Etan Bukiet
<yosh@liquidzone.net> wrote in message
news:H5WdnaDLScUxSgTcRVnygQ@giganews.com...
> Hi, making a application that deals with 3 image files that are quite
> large. they are about 8000x8000px
> in size, i have tryed to load them all into memory but i always get a out
> of memory exception
> so i have given up on that idea... so now i have to load one image,
> process it and write the output
> then open the next image and write that to the output files of the first
> image, and do the same with
> the last.
>
> this is much slower than it is to load all images into memory and process
> them there. so now im
> wondering if theres some other faster way to load images into a bitmap
> object than
>
> dim objBitmap = new bitmap(strFilename) ?
>