|
-
Nov 25th, 2000, 12:03 PM
#1
Thread Starter
New Member
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
-
Nov 25th, 2000, 07:20 PM
#2
Frenzied Member
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!
-
Nov 27th, 2000, 06:38 AM
#3
Thread Starter
New Member
Can u explanation more for me.....how i can do it
-
Nov 27th, 2000, 10:37 AM
#4
Frenzied Member
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!
-
Nov 28th, 2000, 04:51 PM
#5
Thread Starter
New Member
SORRY ...
I did not understand !!!!!!
-
Nov 28th, 2000, 08:13 PM
#6
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|