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. getpixel

getpixel

Scheduled Pinned Locked Moved Visual Basic
5 Posts 2 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.
  • T Offline
    T Offline
    Taylor
    wrote on last edited by
    #1

    i wrote a program which draws lines on a picturebox when user clickes on it. theres no picture iniside the picture box and i intend to know the color of these pixels programitically.

    A.E.K

    D 1 Reply Last reply
    0
    • T Taylor

      i wrote a program which draws lines on a picturebox when user clickes on it. theres no picture iniside the picture box and i intend to know the color of these pixels programitically.

      A.E.K

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

      So what's the question? What part of this are you having a problem with?

      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      T 1 Reply Last reply
      0
      • D Dave Kreskowiak

        So what's the question? What part of this are you having a problem with?

        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        T Offline
        T Offline
        Taylor
        wrote on last edited by
        #3

        getpixel needs a bitmap. but my picture box has no bitmap.i draw on it from paint event of the picture box. how can i make a bitmap from such picture box?

        A.E.K

        D 1 Reply Last reply
        0
        • T Taylor

          getpixel needs a bitmap. but my picture box has no bitmap.i draw on it from paint event of the picture box. how can i make a bitmap from such picture box?

          A.E.K

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

          You don't. Draw on a bitmap, then show it using the picturebox. You can use the picturebox to give you the mouse events, then do all your drawing on the bitmap.

          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          T 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You don't. Draw on a bitmap, then show it using the picturebox. You can use the picturebox to give you the mouse events, then do all your drawing on the bitmap.

            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            T Offline
            T Offline
            Taylor
            wrote on last edited by
            #5

            thanks a lot.

            A.E.K

            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