Click here to Skip to main content
15,665,276 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone, I need a tip on how to create a "gradient frame effect" filter in Java to apply to an image. For example, given this image:


I want to get this result:

Gradient Frame

How can I proceed? Thanks for your input

What I have tried:

I tried a bit to fiddle with the parameters of the RadialGradientPaint class, but without getting the desired result.
Updated 1-May-21 4:35am

1 solution

You need to use some of the advanced graphics features: Lesson: Advanced Topics in Java2D (The Java™ Tutorials > 2D Graphics)[^].
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900