ColorPicker - Get color from any point on the screen

Developed or developing a new product in PureBasic? Tell the world about it.
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

ColorPicker - Get color from any point on the screen

Post by byo »

Hi, guys.

I found this little freeware DLL (it was hard to find a download location that worked) and I'm using it in one of my projects. It's helping me learn how to use DLLs within Purebasic.

Inside the ZIP file, there's only one function:

Code: Select all

result.l = PickColor(Red.c, Green.c, Blue.c)
You pass the Red, Green and Blue variables as parameters and the DLL will store the RGB values for you whenever you click somewhere on the screen. I found it to be very useful and easy to use.

Since I don't have a place to store the file yet, I put it on RapidShare.
The download link is below. No hard work by me, I just found the DLL (made by Vandog.com which doesn't exist anymore).

DOWNLOAD:
http://rapidshare.com/files/57621351/Co ... r.zip.html

EDIT: The file is updated. The example is a little more practical. Purebasic rules!
Last edited by byo on Sun Sep 23, 2007 8:08 am, edited 1 time in total.
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Nice example.

Thanks for sharing it.

cheers
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Thanks, rsts.

This was my first attempt to make an include for a DLL.

I'm still wondering if after the program closes, it will close the library opened with OpenLibrary automatically as it is in my include file.
User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Post by ar-s »

dead link :?
byo
Enthusiast
Enthusiast
Posts: 635
Joined: Mon Apr 02, 2007 1:43 am
Location: Brazil

Post by byo »

Hi, ar-s

I'll find my sources and post it somewhere else tonight.
Kind regards,

byo
Proud registered Purebasic user.
Because programming should be fun.
Post Reply