|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.sjit.SlowSampler
@Deprecated public class SlowSampler
Subsamples an image to create a smaller (or larger(!)) image. This can use several sampling filters. Credits: The algorithms and methods used in this library are based on the article "General Filtered Image Rescaling" by Dale Schumacher which appeared in the book Graphics Gems III, published by Academic Press, Inc.
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Deprecated. |
static java.awt.image.BufferedImage |
resample(java.awt.image.BufferedImage srci,
ResamplerFilter f,
int ow,
int oh)
Deprecated. The actual sampler code which converts a source image to a destination image, reducing or enlarging the image. |
static java.awt.Point |
resizeWithAspect(int w,
int h,
int iw,
int ih)
Deprecated. Does a resize of an object with size (iw, ih) to fit within a rectangle of (w, h) while keeping the same aspect ratio |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.awt.image.BufferedImage resample(java.awt.image.BufferedImage srci, ResamplerFilter f, int ow, int oh)
public static java.awt.Point resizeWithAspect(int w, int h, int iw, int ih)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |