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

  • Home
  • SEARCH
  • 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 6232041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:02:48+00:00 2026-05-24T10:02:48+00:00

I want to create gif/png image file using java programatically. This gif/png image should

  • 0

I want to create gif/png image file using java programatically. This gif/png image should be transparent and a certain patch of color of specified rectangular size and at specified location should be translucent. I have height and width of the image in pixels. I also have x,y coordinate placing that rectangular colored translucent patch and also have the height and width of that colored translucent patch.

Is it possible to create a gif/png image with above specification programatically in Java?
How to create such gif/png image?

As I don’t know image processing in java please guide me friends to achieve this task.

  • 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-24T10:02:48+00:00Added an answer on May 24, 2026 at 10:02 am

    Create a BufferedImage with an alpha channel. Get the Graphics object of the image. Paint to it whatever you like. Save it as a PNG using ImageIO.

    For documentation, see the JavaDocs for each of those classes. For a tutorial, I recommend the 2D Graphics Trail of the Java Tutorial.

    As for demo. code, I am too busy to go trawling through my ‘throwaway’ codes for an example of creating a PNG with partial transparency. Especially since if I posted it, you’d probably complain that the partially transparent part is a circle rather than a square.

    Why not give it your best shot based on the leads I’ve already provided, and if you get stuck, post an sscce of your best effort to the thread as an edit to your question?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a Java application bundle for Mac without using Mac. According
Hallo I want to make an file upload. The script should take the image,
I want to create a jQuery dialogue and overwrite the color setting for this
i want to create a structure like that: [{title:'Imágenes', extensions:'jpg,gif,png'}, {title:'Todos', extensions:'*'}] but i
I want to create dynamic content based on this. I know it's somewhere, as
Assume i want to create 500 wxWidget like (some panels , color buttons and
Im using this plugin: http://www.fyneworks.com/jquery/star-rating It includes a star.gif (which actually contains the star
I want to create a Date, Time and DateTime EditorTemplate using MVC3 and Razor.
i'm using google maps v3 and i want create a new map associate to
I want to upload the image using the .NET webservices and that will be

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.