Page 1 of 1

ColorPicker - Get color from any point on the screen

Posted: Sun Sep 23, 2007 2:41 am
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!

Posted: Sun Sep 23, 2007 4:58 am
by rsts
Nice example.

Thanks for sharing it.

cheers

Posted: Mon Sep 24, 2007 3:06 pm
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.

Posted: Wed Aug 20, 2008 3:49 pm
by ar-s
dead link :?

Posted: Wed Aug 20, 2008 4:32 pm
by byo
Hi, ar-s

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

byo