Results 1 to 2 of 2

Thread: Color picker API

  1. #1

    Thread Starter
    Member Cahlel's Avatar
    Join Date
    Aug 2000
    Location
    Earth (I think)
    Posts
    63

    Question

    Ok, is there a way to use API to get the color that the cursor is over, you know, like you can in programs like photoshop and flash?
    Wisdom is supreme, therefore get wisdom,
    though it costs all you have, get understanding.
    Proverbs 4:7

  2. #2
    Megatron
    Guest
    GetPixel.

    Code:
    Private Declare Function GetPixel Lib "gdi32" Alias "GetPixel" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
    Usage (In Picture_MouseDown event)
    Code:
    lColor = GetPixel(Picture1.hDC, X ,Y)

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