Results 1 to 6 of 6

Thread: zoom a specific area?????

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    ksa
    Posts
    12

    Unhappy

    Hi.....
    how i can zoom a specific area in a picture.
    like when i click a picture so i want the area under the mouse i can zoomin and zoom out.
    i wish u can help me.....Nona
    i wish u can help me.

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Two easy possibilities:
    use an image control place in into a picturebox as frame.
    Set the stretch property to true and just stretch the left/right width/height properties.

    Or use stretchblt
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    ksa
    Posts
    12
    Can u explanation more for me.....how i can do it
    i wish u can help me.

  4. #4
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    I think I already explained the oe with the image control (the easier way), so I explain the stretchBlt now. If there are problems left(will probably happen since I don't know what you know), just write me an email or contact me on ICQ.

    First you have to import the Function StrechBlt and the RasterOperationCode SRCCOPY from the API Viewer.

    The you show the Picture in a PictureBox on the form.
    No You can let the user select an area in any way you like. From the selection a point (x,y) should result which specifies the left top point of the rectangle you want to zoom to, and a width and height, that specify the width and height of the area you want to show zoomed.

    now you blit it with strechBlt to you picbox
    for x and y you will use 0 for the new Width and Height (nWidht/ nHeight) you use the width/height of your poicturebox. For the xSrc and the ySrc the (x,y) resulted from the selection, and for nSrcWidth/nSrcHeight the width and height resulted from the selection.
    I hope you could understand this, if not just write me.
    Sanity is a full time job

    Puh das war harter Stoff!

  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    ksa
    Posts
    12
    SORRY ...
    I did not understand !!!!!!
    i wish u can help me.

  6. #6
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    DO you have ICQ? or can you email me to [email protected]?
    If not I'll have another try in here, but I have more time when I am actually at home.
    Sanity is a full time job

    Puh das war harter Stoff!

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