Graphics/Bitmap Limits?
Posted
by Dean
on Stack Overflow
See other posts from Stack Overflow
or by Dean
Published on 2010-04-07T02:04:12Z
Indexed on
2010/04/07
2:53 UTC
Read the original article
Hit count: 335
Im having some weird problems with Graphics and Bitmap.
I have a Graphics Object that is displayed on a PictureBox and im capturing the MouseMove and MouseClick Events that give X and Y Position of the Mouse on the Image but if the Y Position goes Bigger then 32775 it then goes into Negatives which means everything breaks. And if the Image is Bigger then 65535 it then stops displaying the Image.
Any Ideas how these problems can be fixed?
Thanks
Example Code:
Just Click Make 10,000 Bigger about 4 times then scroll down and on the right it will show the mouse X and Y position and as you move down through the image and hover over the Red Area if you go down enough it will go into Negative Y.
© Stack Overflow or respective owner