Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Single image file

 
Larry Lai
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guy,
One question I want to ask is 'How can the application display a single image file (without making multiple copies) into different size?'
It's because I design an application showing a image and the users can choice the image size with different size(eg. small middile and large).
If anyone doesn't understand my question, I would explain more details as well.
thanks
Larry
 
saager mhatre
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Explain what you mean by
without making multiple copies
.
 
raj madhuram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Larry Lai:
Hi guy,
One question I want to ask is 'How can the application display a single image file (without making multiple copies) into different size?'

The application has to maintain images of highest possible resolution and scale down (there are various filtering techniques) to display images of different sizes.
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Larry,
I think you may want to do something like this:

Hope this helps,
Michael Morris
[ August 06, 2002: Message edited by: Michael Morris ]
[ August 06, 2002: Message edited by: Michael Morris ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic