Results 1 to 4 of 4

Thread: VB code to write and view very large images that contain scroll bars

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    houston,tx
    Posts
    20

    Post

    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?

  2. #2
    Lively Member
    Join Date
    May 1999
    Location
    Vancouver, BC, Canada
    Posts
    84

    Post

    I've used the Kodak/Wang Image Edit control to open 8MB image files and it has several scrollbar property settings.

  3. #3
    Junior Member
    Join Date
    Nov 1999
    Location
    Wellsburg, WV, USA
    Posts
    25

    Post

    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

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Dec 1999
    Location
    houston,tx
    Posts
    20

    Post

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width