CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    how to load bitmapresource (4500*4500pixel)

    2720*2720pixel loaded succesfully loaded.
    but 3000*3000 did not load.
    I want to load 4500*4500(pixel) bitmapresource.
    (my computer is mmx166 64ram.)


  2. #2
    Join Date
    Apr 1999
    Location
    Nottingham, UK
    Posts
    35

    Re: how to load bitmapresource (4500*4500pixel)

    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...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured