Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Move Image within PicBox

Move Image within PicBox

Scheduled Pinned Locked Moved Visual Basic
tutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Serpiente
    wrote on last edited by
    #1

    Hello, Well, I have a PictureBox and this control contained an image. For example the PictureBox has 200 x 300. Well the image size is 800 x 600. Is possible that move the image in the picturebox, for example the coord(0,0) of the picture box show the coord(100,100) of the image. I want to drag and drop and move the image on the picturebox, so the picturebox is like a window only I can see an area 200 x 300 of the image. Thank you, sorry meaby a I can't explained for my bad english. See you gangeles

    K D S 3 Replies Last reply
    0
    • S Serpiente

      Hello, Well, I have a PictureBox and this control contained an image. For example the PictureBox has 200 x 300. Well the image size is 800 x 600. Is possible that move the image in the picturebox, for example the coord(0,0) of the picture box show the coord(100,100) of the image. I want to drag and drop and move the image on the picturebox, so the picturebox is like a window only I can see an area 200 x 300 of the image. Thank you, sorry meaby a I can't explained for my bad english. See you gangeles

      K Offline
      K Offline
      kostasdiktia2
      wrote on last edited by
      #2

      If I understand.. Try to save a new image file from the first picture 800x600, with size 200x300 with the field of first picture that you want. It's very easy with bitmap..select all..move..remake picture size..and save it! Now try again to import the new image in PictureBox 200x300!:-D -- modified at 19:01 Wednesday 8th February, 2006

      1 Reply Last reply
      0
      • S Serpiente

        Hello, Well, I have a PictureBox and this control contained an image. For example the PictureBox has 200 x 300. Well the image size is 800 x 600. Is possible that move the image in the picturebox, for example the coord(0,0) of the picture box show the coord(100,100) of the image. I want to drag and drop and move the image on the picturebox, so the picturebox is like a window only I can see an area 200 x 300 of the image. Thank you, sorry meaby a I can't explained for my bad english. See you gangeles

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        This is actually pretty easy. Load the image into the PictueBox at full size (800x600), then put the PictureBox in a Panel control. Make sure the Panels AutoScroll property is set to true. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        G 1 Reply Last reply
        0
        • D Dave Kreskowiak

          This is actually pretty easy. Load the image into the PictueBox at full size (800x600), then put the PictureBox in a Panel control. Make sure the Panels AutoScroll property is set to true. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          G Offline
          G Offline
          Guerven
          wrote on last edited by
          #4

          aBsolutely! that is exactly what i have in mind :) simple yet effective move from the machine Marvin N. Guerrero - Taje Kage_bunshinNunJutsU

          1 Reply Last reply
          0
          • S Serpiente

            Hello, Well, I have a PictureBox and this control contained an image. For example the PictureBox has 200 x 300. Well the image size is 800 x 600. Is possible that move the image in the picturebox, for example the coord(0,0) of the picture box show the coord(100,100) of the image. I want to drag and drop and move the image on the picturebox, so the picturebox is like a window only I can see an area 200 x 300 of the image. Thank you, sorry meaby a I can't explained for my bad english. See you gangeles

            S Offline
            S Offline
            Serpiente
            wrote on last edited by
            #5

            Well Folks, Finally I founded that I need. The ImagXpress Pegasus control 7.0 have all the things I need. http://pegasusimaging.com/imagxpress.htm This demo have an example: C:\Program Files\Pegasus Imaging\ImagXpress\V7.0\Samples\ActiveX-COM\VB6\ViewingTools CU and Thanx gangeles

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups