CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    8

    How to Get pixel value without Getpixel Function

    I'm making app that to get pixel value on screen without Getpixel API Fuction.
    (I'm talking about bitmaps on screen)

    How I can do it?

    I can't speak English well and I'm beginner.

    Thank for reading

  2. #2
    Join Date
    Jun 2002
    Location
    West Virginia
    Posts
    131

    Re: How to Get pixel value without Getpixel Function

    Be sure to set your picturebox ScaleMode to Pixels.
    Code:
        Dim colour as Long
        colour = Picture1.Point(X, Y)
    x is your row coord. & y is your col. coord. Can be gotten from MouseDown event.
    Wayne

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured