How to Manage pictures in Visual Basic ( Hellow Banfa Please Help Me)...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suresh_punniyakkodi
    New Member
    • Aug 2006
    • 20

    How to Manage pictures in Visual Basic ( Hellow Banfa Please Help Me)...

    Hellow,
    I am suresh, i am developing one project in VB. I need your help. My question is how to zoom pictures(zoom in and zoom out) in Visual Basic (like Photo Editor). Because, i am managing some pictures in my one part of the Project, and i need how to rotate pictures in Visual Basic. So, please tell me how to include zooming facility in VisualBasic. and how to include scrolls in that pictures, and also i need zoom to that particular area(Rectangula r Area) of that pictures when right mouse clicking on that pictures.

    Regards
    Suresh...
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by suresh_punniyak kodi
    I am suresh, i am developing one project in VB. I need your help. My question is how to zoom pictures(zoom in and zoom out) in Visual Basic (like Photo Editor). Because, i am managing some pictures in my one part of the Project, and i need how to rotate pictures in Visual Basic. So, please tell me how to include zooming facility in VisualBasic. and how to include scrolls in that pictures, and also i need zoom to that particular area(Rectangula r Area) of that pictures when right mouse clicking on that pictures.
    One fairly simple way to zoom a picture is to place it in an image control with Stretch = True, and place this control inside a picture box. Then you change the size of the image control based on the desired zoom factor, and place your scroll bars on the picture box as necessary. The various mouse events on the imagebox and/or picturebox should give you enough information to allow user interaction.

    Rotation I'm not too sure about. Rotating by 90 degree increments is simple enough, because you can copy the image a pixel at a time and just switch X and Y coordinates around. But beyond that I don't have any (recent) experience. (Think I played with it, maybe ten years ago).

    Comment

    Working...