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

Thread: Large bitmap

  1. #1
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Large bitmap

    How do I go about loading a large (4000x4000) bitmap on a picturebox? I need to let the user scroll through it. I am thinking about using an array of 16 1000x1000 pictureboxes. But how do I break the large bitmap into chunks programmatically?

    Loading the whole picture in one go gives the 'Cannot create Autoredraw image' error.


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Large bitmap

    To break an image you can use pictureclip control (see components.. microsoft windows common controls). Load the image in it, and set the nimber ow rows and cols inwhich tio split it.
    Enjoy.

    Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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