Large bitmap and Win32 API

vucko

New member
Joined
Jun 27, 2003
Messages
4
I use BitBlt for scrolling a large bitmap (3200x2600)px but problem is because HBITMAP takes too much memory.

After loading of images:
bmp = new Bitmap("c:\\Bitmaps\\3200x2600Gif.gif");

takes about 8Mb and after executing following line:
handleBitmap = bmp.GetHbitmap();

my application increase used memory for about 30Mb

How can I avoid this?

Note: When I open the same image in WebMatrix for example( because it is written in c#) results are excellent: image takes about 8Mb and scrolling works nice

Thanks
 
Back
Top