problem with create Big Image

Last post 03-13-2008 13:31 by ctacke. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-13-2008 13:20

    • Merlin
    • Top 500 Contributor
    • Joined on 03-13-2008
    • Russia
    • Posts 1

    problem with create Big Image

    Hi. 

    I create BItMap:

         Image img = new Bitmap(2500, 3500);

    and applcation say ("OutOfMemoryException")

    how i can solve a problem? help me please :) 

     

     Platform: WindowsMobile 6 (CF.NET 2.0)

  • 03-13-2008 13:31 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 1,857

    Re: problem with create Big Image

    You simply don't do that. 

    2500px * 3500px =  8,750,000 pixels
    That's 17.5MB at 16bpp or 26.25MB at 24bpp.

    There's no way you can possibly display an image of that size, so there's no reasobable explanation for why you might need to do it.  Your device simply doesn't have that kind of memory.

     


     

     

Page 1 of 1 (2 items)