Share My Creation B4J Color Palette Tool – Extract colors from any image (HEX picker + palette generator)

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.

color.gif


1774357440779.png
1774357456705.png




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:


  1. Copy any image to your clipboard
  2. Press Ctrl+V or click Paste
  3. The palette is generated automatically on the right side
  4. Hover the mouse over the image to preview colors
  5. 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.
 

Attachments

  • B4J_COLOR_PALETE.zip
    479.4 KB · Views: 36
Top