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. How to show a fit size of jpg

How to show a fit size of jpg

Scheduled Pinned Locked Moved Visual Basic
questionhelptutorial
4 Posts 3 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.
  • C Offline
    C Offline
    cylix2000
    wrote on last edited by
    #1

    If I have a jpg file like 1024*768, but my picturebox only has 800*600, How can I make the jpg file scale(zoom) to fix the picture box to show? Thank You!

    O _ 2 Replies Last reply
    0
    • C cylix2000

      If I have a jpg file like 1024*768, but my picturebox only has 800*600, How can I make the jpg file scale(zoom) to fix the picture box to show? Thank You!

      O Offline
      O Offline
      Owner drawn
      wrote on last edited by
      #2

      A property SizeMode exists for the Picture box. Set the value to StrechImage Or do it through code like this: PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage

      Jesus Loves:rose:

      --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

      C 1 Reply Last reply
      0
      • O Owner drawn

        A property SizeMode exists for the Picture box. Set the value to StrechImage Or do it through code like this: PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage

        Jesus Loves:rose:

        --Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:

        C Offline
        C Offline
        cylix2000
        wrote on last edited by
        #3

        Sorry for that, I know this property ... What I really what to know is like a zoom function in All reader, when we press the (+), the picture zoom in; (-), the picture zoom out. Thanks anyway.

        1 Reply Last reply
        0
        • C cylix2000

          If I have a jpg file like 1024*768, but my picturebox only has 800*600, How can I make the jpg file scale(zoom) to fix the picture box to show? Thank You!

          _ Offline
          _ Offline
          _NinethSense_
          wrote on last edited by
          #4

          Change the SizeMode property of PictureBox to StretchImage. PraVeeN NinethSense.com/blog/

          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