Hi everyone!
I'd like to share a B4J desktop tool I made to extract colors from images. It uses the ColourThief library to generate a color palette from any image, and also lets you pick the exact color of any pixel by hovering with the mouse.
Features:
How to use:
The project uses:
I hope it's useful for developers who need to grab colors from UI screenshots, design references, or any image!
Feel free to ask questions or suggest improvements.
I'd like to share a B4J desktop tool I made to extract colors from images. It uses the ColourThief library to generate a color palette from any image, and also lets you pick the exact color of any pixel by hovering with the mouse.
Features:
- Paste an image directly from clipboard (Ctrl+V)
- Or load an image from your computer using the "Change Image" button
- Automatically generates a color palette with the dominant colors
- Hover the mouse over the image to see the HEX color of that pixel in real time
- Click on the image to copy that pixel's HEX color to your clipboard
- Click any color in the palette list to copy its HEX value
- Supports zoom and pan on the image (scroll wheel + drag)
- Built with B4XPages and ZoomImageView custom view
How to use:
- Copy any image to your clipboard
- Press Ctrl+V or click Paste
- The palette is generated automatically on the right side
- Hover the mouse over the image to preview colors
- Click anywhere on the image to copy that exact HEX color
You can build this as a standalone Windows executable via Project > Build Standalone Package
The project uses:
- ColourThief – palette generation
- ZoomImageView – custom view for zoom/pan/click/hover
- BitmapCreator – pixel color reading
- B4XPages – page management
I hope it's useful for developers who need to grab colors from UI screenshots, design references, or any image!
Feel free to ask questions or suggest improvements.