PDA

Click to See Complete Forum and Search --> : VB code to write and view very large images that contain scroll bars


leif-p
Dec 4th, 1999, 12:55 AM
I noticed an app that wrote and opened a very large image that had scroll bars on it.

What kind of file format has scroll bars on the sides of a large image?

Also, what kind of code will allow me to OPEN and WRITE, and what control will allow me to VIEW such an image with scroll bars?

jkurpias
Dec 6th, 1999, 01:15 AM
I've used the Kodak/Wang Image Edit control to open 8MB image files and it has several scrollbar property settings.

dmuir
Dec 6th, 1999, 11:15 AM
If you load the initial picture into a picture box that is not on your main screen, you should be able to bitblt to transfer parts of that picture to another smaller picture box that is on your main screen.

You can put a vertical scroll bar and a horizontal scroll bar on the sides of the smaller picture box. Then just calculate how far down the user has clicked on the scroll bars. You should be able to bitblt the appropriate x and y coordinate to the small box from the large picture box that is off the screen.

You can try this. I am not sure if there is a control that reads images with scroll bars, but this is how I handled the situation in the past.

Hope this helps,
dmuir

leif-p
Dec 6th, 1999, 10:39 PM
Dear DMuir:

Thnaks for the information - I'll look at the bitblt of pixels from one control to another, and also look at the Wang/Kodak control. Leif-p