Reputation: 7879
I'm using an image of a dart board in this example as it's a good example for what I am trying to achieve.
Is there any way in Java that part of an image can be highlighted? I achieved the below by using the Magic Wand
in Paint.NET and added an outline to the selected part.
The 'problem' here is if I wanted to highlight every part of this dart board individually, I'm going to end up with a lot of pictures.
Is there some clever library out there that can do this programmatically so I have literally just the one image and can somehow point to some coordinates, it imitates the "magic wand" effect and adds an outline of my choice?
Without highlight:
With highlight:
Thanks, Ricky
Edit: Answer taken for simplicity. Thanks.
Upvotes: 1
Views: 1809
Reputation: 5572
You could just rotate the highlight image around for each position of the dartboard? Is this a Swing app? Java2D? What framework do you use?
Upvotes: 2