Link to home
Start Free TrialLog in
Avatar of DrWarezz
DrWarezz

asked on

Image Resize (using "Lanczos3 Window")

Hey all,

I'm not sure how easy this will be, but I hope that you lot can help ;-)

Basically, I'd like to be able to resize an image, using the "Lanczos3 Window" 'resampling method' (unless any of you know of a better, higher quality method?).

Thanks alot in advance! :-)
[r.D]
ASKER CERTIFIED SOLUTION
Avatar of kiranhk
kiranhk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kiranhk
kiranhk

Avatar of DrWarezz

ASKER

Thanks kiranhk, I'll check them out..
Ah right.. not quite what I'm after.. I have PhotoPlus and PhotoShop, so I can perform these tasks myself. But I'd like to be able to achieve this resizing in Java (using the "Lonczos3 Windows" resampling method)..

Any known packages out there that do this?

Thanks,
[r.D]
did u check out the JIU project on sourforge i posted above. it does the same using Lonczos3
Okay, I'll download it -- thanks! :D
[r.D]
Okay. I've downloaded it.. but I'm having trouble getting it to work.. how do I use it? (It's not very clear :o\).

Can you tell me how to go about using it? Or, in what Source file contains the method to resize, using the "Lanczos3" thing.. ? :-)

ta,
[r.D]
Lanczos3Filter is the class which does that....
you can check out the documentation on that....

Resample resample = new Resample();
 resample.setInputImage(image);
resample.setSize(image.getWidth() * 3 / 2, image.getHeight() * 3 / 2);
 resample.setFilter(Resample.FILTER TYPE LANCZOS3);
 resample.process();
 PixelImage scaledImage = resample.getOutputImage();
Okay, that will do me for now... I may be back for more though :-)

Thanks alot kiranhk.
[r.D]