Zoom/Pan/Scrollable PictureBox
-
I am working on an image editor app for a VB.NET class in college. I have been looking for code for a image display control that can zoom, pan, and be scrolled. Our professor is allowing us to use other people's controls as long as they are cited as being the creators of the control. I've tried writing a UserControl to do this, but it's ugly. I get a lot of flashing (from Invalidating) when I scroll, and I know there's errors in my math somewhere because I can't always scroll back to where I started. I'd also like to get a good old magnified pixelated look when I zoom, but instead I'm getting the bi-linear or tri-linear filtering. Is it possible to get around this and just get blockiness? Thanks in advance for any and all help. To not know is bad. To not wish to know is worse.
-
I am working on an image editor app for a VB.NET class in college. I have been looking for code for a image display control that can zoom, pan, and be scrolled. Our professor is allowing us to use other people's controls as long as they are cited as being the creators of the control. I've tried writing a UserControl to do this, but it's ugly. I get a lot of flashing (from Invalidating) when I scroll, and I know there's errors in my math somewhere because I can't always scroll back to where I started. I'd also like to get a good old magnified pixelated look when I zoom, but instead I'm getting the bi-linear or tri-linear filtering. Is it possible to get around this and just get blockiness? Thanks in advance for any and all help. To not know is bad. To not wish to know is worse.
I am 3/4 finished with one but unfortunately it is in VB Classic. If you want to help me, (porting it or just finishing it to be used in .NET thru interop) just let me know.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi -
I am 3/4 finished with one but unfortunately it is in VB Classic. If you want to help me, (porting it or just finishing it to be used in .NET thru interop) just let me know.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi -
I'd be up for both helping finish it and porting it. If you like, I can send you my code as well, goofy as it is, so you can see where I was coming from. To not know is bad. To not wish to know is worse.
I'm going to finish my viewport myself and maybe I'll send a copy to you. Too bad the .NET scrolling support is so lousy, but what they didn't give us, we can make ourselves.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi