Sample & Hold Pixel Colour
Posted: Tue Nov 12, 2013 9:11 am
I don't know if someone can find a use for this and maybe improve on the schematic. It works OK when sampling the first time, but afterwards it is as if the mouse pointer [i.e. the finger symbol] gets ignored and the rear of the mouse pointer [i.e. the back of the hand symbol] then takes over. Maybe I am doing something wrong in the schematic?
Personal use: Sometimes I see a picture containing a nice colour which I want to use in a project, and since I am terrible with judging/picking colour, I thought of using this schematic for this purpose and also to share this with others.
Description: Load a Bitmap/Jpg Picture you want to sample by means of the schematic. Move the Mouse over the Bitmap/Jpg picture you want to take samples from, the Pixel Colour will be displayed in the "Display Colour Prior to.." window. Left Click with Mouse on the desired pixel Colour, and the Colour will be Sampled and Held in the "Display Colour after..." window. The corresponding Alpa Blend, Red, Green & Blue values [A, R, G, B] for the selected Pixel Colour can then be read from the four respective displays and be used elsewhere in other projects?
Credit: to pall for using his "Colour Matrix tool" in this project, very useful tool.
UPDATED SCHEMATIC TO VERSION 1.0.5:
1. Solved the problem with the mouse.
2. Solved the Image refreshing problem, images now load correctly.
3. Removed Scaling & Resizing functions as this is what mainly caused the problems.
4. IMPORTANT: THE SCHEMATIC IS CURRENTLY SET TO LOAD A MAXIMUM IMAGE SIZE OF 700 W x 560 H Pixels. If you load a larger file size than this, the schematic will read the pixel colours incorrectly.

Personal use: Sometimes I see a picture containing a nice colour which I want to use in a project, and since I am terrible with judging/picking colour, I thought of using this schematic for this purpose and also to share this with others.
Description: Load a Bitmap/Jpg Picture you want to sample by means of the schematic. Move the Mouse over the Bitmap/Jpg picture you want to take samples from, the Pixel Colour will be displayed in the "Display Colour Prior to.." window. Left Click with Mouse on the desired pixel Colour, and the Colour will be Sampled and Held in the "Display Colour after..." window. The corresponding Alpa Blend, Red, Green & Blue values [A, R, G, B] for the selected Pixel Colour can then be read from the four respective displays and be used elsewhere in other projects?
Credit: to pall for using his "Colour Matrix tool" in this project, very useful tool.
UPDATED SCHEMATIC TO VERSION 1.0.5:
1. Solved the problem with the mouse.
2. Solved the Image refreshing problem, images now load correctly.
3. Removed Scaling & Resizing functions as this is what mainly caused the problems.
4. IMPORTANT: THE SCHEMATIC IS CURRENTLY SET TO LOAD A MAXIMUM IMAGE SIZE OF 700 W x 560 H Pixels. If you load a larger file size than this, the schematic will read the pixel colours incorrectly.