Scaling PNG image

K

ko021_626

Hi, I'm looking for a simple way to scale a png image, not
with existing APIs, but I need the concept (or better, a sample
source code)
Can anyone point me out some links/help?

Thanks!
 
R

Roedy Green

Hi, I'm looking for a simple way to scale a png image, not
with existing APIs, but I need the concept (or better, a sample
source code)
Can anyone point me out some links/help?

Just use drawImage with a scale onto a JPanel

If you don't want to display the result, try drawImage onto another
Image. I have not done this, but I've read about it, sort of like
having sex while hanging from a trapeeze.

see http://mindprod.com/jgloss/jpegencoder.html
for links to the techniques for converting gif jpg and png back to
files.
 
T

Thomas Weidenfeller

Hi, I'm looking for a simple way to scale a png image, not
with existing APIs, but I need the concept (or better, a sample
source code)
Can anyone point me out some links/help?

Get the faq for comp.graphics.algorithms. Check chapter 3 and also the
book section. A textbook like Foley, van Dam, Feiner, Hughes: "Computer
Graphics: Principles and Practice" should contain an introduction about
the common algorithms. The Graphic Gems series should also have a bunch
of example algorithms.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top