If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

object: Optional. An object expression that evaluates to an object in the Applies To list. If object is omitted, the Form object with the focus is assumed to be object.

Picture: Required. The source of the graphic to be drawn onto object. Must be the Picture property of a Form or PictureBox.

x1, y1: Required. Single-precision values indicating the destination coordinates (x-axis and y-axis) on object for picture to be drawn. The ScaleMode property of object determines the unit of measure used.

Width1: Optional. Single-precision value indicating the destination width of picture. The ScaleMode property of object determines the unit of measure used. If the destination width is larger or smaller than the source width (width2), picture is stretched or compressed to fit. If omitted, the source width is used.

Height1: Optional. Single-precision value indicating the destination height of picture. The ScaleMode property of object determines the unit of measure used. If the destination height is larger or smaller than the source height (height2), picture is stretched or compressed to fit. If omitted, the source height is used.

After all this it might not take that much to add this funtionability to a picturebox...

Re: Zoom in & out of an Image within a PictureBox

I've used the Paintpicture method to do the Zoom on a Picturebox Control..

The zoom worked better than i expected.. (but going higher than about 5* is not recomended, It's a bit ikky up there..)

I have not completed adding in the code to make the Zoom work with the Crops.

So if you crop then zoom, the picture snaps to the original uncropped pic..

Will add this tomorrow, It's getting a bit late and i got a long work day ahead, so i need to get some sleep..

Gremmy...

----- Edit -----

Worked on it this morning and sorted it all out .. the zoom works with only picturebox's.. and is fully integrated with the crop application..

i used a lot of variables and UDT's to enable this.. basically the original pic stays in the background, untouched.. a dummy pic shows the zoom, gets the selection for crop and apply's it to the original pic in the correct proportion..

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.