Click here to Skip to main content
14,487,848 members
Rate this:
Please Sign up or sign in to vote.
See more:
When BMP image is very large image (1700 x 1700), PixelFormat becomes 0.

[Thanks for all the reply - The problem is solved by parser the bmp myself.]
Posted
Updated 5-Jun-11 15:12pm
v2
Comments
Sergey Alexandrovich Kryukov 25-May-11 20:45pm
   
Interesting and good to know. In what cases? Could you build and post the possibly simplest demo code which would show this problem? As to the image, just tell the format and size which would cause it.
Thank you.
--SA
Rate this:
Please Sign up or sign in to vote.

Solution 1

What size is a very large image ?

A little google search gave this. Hope it can help.

What are the limits of the drawing area?[^]

Maximum Bitmap Size?[^]

.NET GDI+ image size - file codec limitations[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Thanks for all the reply
The image is a bmp. Created by gimp 2.6. the size is: 17000x17000 pixels

The problem is solved by parser the bmp myself.
   
Comments
Christian Graus 5-Jun-11 20:18pm
   
Don't push answer unless you're posting an answer. Post a comment, by pushing 'comment'.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100