File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes How to speed up combining 3 png image files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "How to speed up combining 3 png image files" Watch "How to speed up combining 3 png image files" New topic

How to speed up combining 3 png image files

Michel Pikkaart

Joined: Jun 20, 2009
Posts: 1

Dear all,

I am an starter in the world of Java.

I have an problem that combining 3 images taking a long time to complete, around 3,5 seconds.

My project, I have an tomcat server which by request get an image file from an particular server which is an PNG file. I have already scaled the background image and the grid image, both are also png files. The image from the particular server and the grid image are transparent images.

Now I try to combine those images:
1. loading all images
2. figure out what the hight and width of the background image is.
3. Resize the data image
4. draw data and grid image on the background and save it as png file.

All variables ending on File are defined on higher level in my class file.

This is the methode I wrote which gives me around 3,5 secondes to complete. Besides this I am stuck with the png format, because it should be displayed on an Cisco IP Phone.

Please what should I do different to speed up the combining process of these 3 png image files ?

Thanking you in advance.

I agree. Here's the link:
subject: How to speed up combining 3 png image files
It's not a secret anymore!