Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

How to speed up combining 3 png image files  RSS feed

Posts: 1
Eclipse IDE Mac OS X Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Villains always have antidotes. They're funny that way. Here's an antidote disquised as a tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!