J
Jeffrey Hall
I have code that loads a bitmap from a file like this:
Dim bmp as Bitmap = New Bitmap (imagePath)
It works for smaller files, but throws an out of memory exception when I use
larger files. I believe this is more related to the pixel width and height
than the actual file size because it seems to crash on files that are larger
than 2000 pixels in both dimensions, regardless of the size. I have a
number of GUI elements on the same form, but I tried loading images in an
empty project with no GUI elements with similar results.
My Ipaq has an image viewer that loads 5 of these images at a time (one of
these images alone crashes me) onto the screen and lets you rotate, zoom,
etc, so someone has figured out a way around this. My problem is that I
don't know how to manipulate the image if I can't get the file into a bitmap
to start with. I am new to the .Net Compact Framework so I apologize if
this was answered already, but I haven't had any luck searching forums.
Thanks,
Jeff
Dim bmp as Bitmap = New Bitmap (imagePath)
It works for smaller files, but throws an out of memory exception when I use
larger files. I believe this is more related to the pixel width and height
than the actual file size because it seems to crash on files that are larger
than 2000 pixels in both dimensions, regardless of the size. I have a
number of GUI elements on the same form, but I tried loading images in an
empty project with no GUI elements with similar results.
My Ipaq has an image viewer that loads 5 of these images at a time (one of
these images alone crashes me) onto the screen and lets you rotate, zoom,
etc, so someone has figured out a way around this. My problem is that I
don't know how to manipulate the image if I can't get the file into a bitmap
to start with. I am new to the .Net Compact Framework so I apologize if
this was answered already, but I haven't had any luck searching forums.
Thanks,
Jeff