![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 2
Rep Power: 0
![]() |
Image Panning
I'm trying to create a simple program to read manga (japanese comics.) I'm pretty much done with the loading images from zip, mouse navigation, etc. The only thing I can't figure out is how to pan the images. Usually, the images are too tall to fit on the screen, so I want to make a function where, when I click and hold the mouse button, the image pans according to the mouse movements. Anyone know how this can be done? Or know of a website that explains it? It's driving me crazy :mad: please help. Thanks.
|
|
|
|
|
|
#2 |
|
Newbie
Join Date: Mar 2005
Posts: 2
Rep Power: 0
![]() |
Bump
![]() |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
-itty bump-itty...
__________________
|
|
|
|
|
|
#4 |
|
Expert Programmer
|
Umm, this is a bit more complex of an issue, and if you are not dealing with bitmap files or any other decoded bitmap format than you are going to want to find a rendering/image handling library that will do this for you.
Easiest way, copy the entire image onto a memory "surface" and use BitBlt to copy from that memory surface (which is not drawn to screen) to a memory surface that represents the drawing area on the screen... the BitBlt function in Windows will allow you to copy only fragments of the image and resize the image as well when used correctly.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|