Click to See Complete Forum and Search --> : how to load bitmapresource (4500*4500pixel)


April 22nd, 1999, 01:28 AM
2720*2720pixel loaded succesfully loaded.
but 3000*3000 did not load.
I want to load 4500*4500(pixel) bitmapresource.
(my computer is mmx166 64ram.)

Clive Walker
April 22nd, 1999, 05:17 AM
A 4500 x 4500 uncompressed 8 plane bitmap would require about 160mb of memory, hence the reason it fails...

The normal method for handling large bitmaps is to use tiling. Break your bitmap into smaller bitmaps this reduces load on the machine as you only have to have the tile or tiles you need to display loaded at any time. If you load a very large bitmap into memory your system will have to page out areas of memory as you scroll round your bitmap, this is very slow and inefficient.

Hope this gives you some ideas...