Hi dear all i am new in java i don't know how identify the background and foreground color of image if any have idea please help thanks in advance
Abdul_19
0
Newbie Poster
Recommended Answers
Jump to PostYou can read the image into an Image object, then use the PixelGrabber class to examine the individual pixels and get their colors, but after that it gets difficult - how exactly would you define "background color" and "foreground color" for some arbitrary image?
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.