Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Lower jpeg resolution in java 2D

Brendan Kennedy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a number of high resolution jpeg (1 megapixel) and I wish to lower the resolution of each automatically for viewing depending on the specified size the end user wants.
I thought this would be a simple matter of breaking the picture into small squares and averaging the pixels in each one.
However, it turns out that java imaging has a lot more to it than expected and not a lot of resourses apart from the sun programmers guide.
This is quite large and does not deal directly with what I want to do.
Could you please help me with tutorial urls/advice/sample code as I am very new to this area of java.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic