to.etc.sjit
Class SlowSampler

java.lang.Object
  extended by to.etc.sjit.SlowSampler

Deprecated. Use ImageSubsampler class instead.

@Deprecated
public class SlowSampler
extends java.lang.Object

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.

Author:
Frits Jalvingh

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

resample

public 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. The size reduction does NOT obey aspect ratio rules.


resizeWithAspect

public 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


main

public static void main(java.lang.String[] args)
Deprecated.