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. image at runtime

image at runtime

Scheduled Pinned Locked Moved Visual Basic
help
8 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.
  • B Offline
    B Offline
    bony_baba
    wrote on last edited by
    #1

    hi i am working on vb, I have a problem in image manipulation Is there any way to know height and width of the image at runtime if anybody knows this please help me. Thanks

    H 1 Reply Last reply
    0
    • B bony_baba

      hi i am working on vb, I have a problem in image manipulation Is there any way to know height and width of the image at runtime if anybody knows this please help me. Thanks

      H Offline
      H Offline
      H is here
      wrote on last edited by
      #2

      Hello Dim pic_image As New Bitmap("c:\sample.jpg") MsgBox(pic_image.Size.Height & "---" & pic_image.Size.Width) Hope it helps

      B 1 Reply Last reply
      0
      • H H is here

        Hello Dim pic_image As New Bitmap("c:\sample.jpg") MsgBox(pic_image.Size.Height & "---" & pic_image.Size.Width) Hope it helps

        B Offline
        B Offline
        bony_baba
        wrote on last edited by
        #3

        Thanks i Think it will worked but could you tell me which reference library i have to use for bitmap Thanks -- modified at 8:16 Thursday 23rd March, 2006

        H 1 Reply Last reply
        0
        • B bony_baba

          Thanks i Think it will worked but could you tell me which reference library i have to use for bitmap Thanks -- modified at 8:16 Thursday 23rd March, 2006

          H Offline
          H Offline
          H is here
          wrote on last edited by
          #4

          Hello You have to reference the System.Drawing library Then in top of your class insert: Imports System.Drawing That's it

          A 1 Reply Last reply
          0
          • H H is here

            Hello You have to reference the System.Drawing library Then in top of your class insert: Imports System.Drawing That's it

            A Offline
            A Offline
            ADY007
            wrote on last edited by
            #5

            yes that's good! Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

            B 1 Reply Last reply
            0
            • A ADY007

              yes that's good! Adrian De Battista: .Net Programmer, Java Programmer and Web Designer.

              B Offline
              B Offline
              bony_baba
              wrote on last edited by
              #6

              hi It is working in vb.net but not in vb6.0 because in vb 6.0 there is no any class like bitmap in system.drawing.dll. if you have any other idea so please! Thanks

              P 1 Reply Last reply
              0
              • B bony_baba

                hi It is working in vb.net but not in vb6.0 because in vb 6.0 there is no any class like bitmap in system.drawing.dll. if you have any other idea so please! Thanks

                P Offline
                P Offline
                Purple Monk
                wrote on last edited by
                #7

                The simplest way in vb6 is to add aninvisible picture box and do the following to load the picture and obtain the height width PicBox.Picture = LoadPicture("C:\1.jpg") PicBox.AutoSize = True MsgBox PicBox.Width MsgBox PicBox.Height Me.Show "If i was king cigarettes would be free."

                B 1 Reply Last reply
                0
                • P Purple Monk

                  The simplest way in vb6 is to add aninvisible picture box and do the following to load the picture and obtain the height width PicBox.Picture = LoadPicture("C:\1.jpg") PicBox.AutoSize = True MsgBox PicBox.Width MsgBox PicBox.Height Me.Show "If i was king cigarettes would be free."

                  B Offline
                  B Offline
                  bony_baba
                  wrote on last edited by
                  #8

                  THNAKS IT SOLVED MY PROBLEM Thanks

                  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