1. Technology

Your suggestion is on its way!

An email with a link to:

http://delphi.about.com/od/fullcodeprojects/l/aa012704a.htm

was emailed to:

Thanks for sharing About.com with others!

RGB Color Picker
A free source color sampling application. Use RGB Color Picker to sample colors from your Windows Desktop screen - get the HTML color under the mouse cursor (as you do with the eyedropper tool in most paint programs).
 Win prizes by sharing code!
Do you have some Delphi code you want to share? Are you interested in winning a prize for your work?
Delphi Programming Quickies Contest
 More of this Feature
• DOWNLOAD SOURCE
 Join the Discussion
"Post your views, comments, questions and doubts to this article."
Discuss!
 Related Resources
• Zoom
• Graphics programming

Code submitted by Andy Farrell.

Ah, those little handy programs,..., one could say they are all written in Delphi ;)

RGB color picker
Here's a full source code to the "RBG color picker" application.
RBG color picker is a colour sampling program.

Click the 'Pick From Screen' button and it will display the color under the mouse cursor. Click again to 'pick up' that color.
The output is shown as 3 trackbars representing the red, green and blue components of the color, and there are two labels showing the color as HEX (HTML) and Decimal.

There are also options for point sample, which is the color of the pixel directly under the cursor, 3x3 average sample, which is an average of the 9 pixels around the cursor, and similarly a 5x5 average sample. When using the 3x3 or 5x5 average, a magnified version of the pixels being sampled is displayed in a panel on the form.

RGB color picker

Download full source code.

Note: RGB color picker uses a modified TTrackBar component called TThinTrackbar.

Related Video
Create a Color Sketch From a Photo in Photoshop Elements
Convert Color Photos to Black and White in Photoshop

©2014 About.com. All rights reserved.