Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 964823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:53:36+00:00 2026-05-16T01:53:36+00:00

I am generating some images using the Graphics2D interface, and occasionally I’d like to

  • 0

I am generating some images using the Graphics2D interface, and occasionally I’d like to be able to draw some text on the image and apply to it effects like the ones in Adobe Photoshop.

Right now to generate a ‘shadow’ on the text I am drawing the text twice, once in the original color, and once in black with a slight (1px) x&y offset. Unfortunately this is overly simplistic as I need more control over the shadow (opacity,size, spread).

As for Inner Glows and Outer Glows, I am not really sure where to start; a mask/gradient paint/alpha blending?

Is there a Java library for producing these types of effects? If not how would you go about creating these effects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:53:36+00:00Added an answer on May 16, 2026 at 1:53 am

    I would highly recommend the book Filthy Rich Clients. Chapter 16 talks about drop shadows. You also might be interested in the this blog post. Chapter 17 talks about the glowing effect. There is example code on the website for both. The rest of the book is well worth reading as well. I couldn’t put the book down when I read it. There are many other fun effects explained and demonstrated in the book.

    The jhlabs site is also a good site, as mentioned.

    Edit:

    For a library, I would look at Painters in the SwingX library. Here are several tutorials:

    • http://weblogs.java.net/blog/2006/09/20/introducing-painters
    • http://www.curious-creature.org/2006/03/24/swingx-painters-demo/
    • http://www.jroller.com/gfx/entry/advanced_swingx_painters_demo
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am generating some PDFs with dompdf, which contains some text and images in
I'm doing some txt->image generating using convert of ImageMagick. But it outputs only rasterized
I'm using PIL to load in various fonts and draw text to images. At
I'm generating some pdf's with Reportlab and Django using a web interface. The pdf's
i am generating *.reg file using code which will have some important data. and
I would like to remove some warnings for some classes by generating an automatic
I'm dynamically generating some charts using mod_python, in .png and .pdf formats. When a
I am using the rmagick gem for generating dynamic images from a controller. The
I have some server code that is generating thumbnails when an image is uploaded.
I'm dealing with image uploads and I'd like some suggestions on naming files and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.