All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.JPM.Filters.Rotate

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----Acme.JPM.Filters.ImageFilterPlus
                   |
                   +----Acme.JPM.Filters.CompositeFilter
                           |
                           +----Acme.JPM.Filters.Rotate

public class Rotate
extends CompositeFilter
Rotate an image by some angle.

Rotates an image by the specified angle. The angle is in degrees measured counter-clockwise. It can be negative, but it should be between -90 and 90 or the resulting image will be unreasonably large. Staying between -45 and 45 is best.

The rotation algorithm is Alan Paeth's three-shear method, described in "A Fast Algorithm for General Raster Rotation", Graphics Interface '86, pp. 77-81.

This filter is slow.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o Rotate(ImageProducer, double)
Constructor.

Method Index

 o main(String[])

Constructors

 o Rotate
 public Rotate(ImageProducer producer,
               double angle)
Constructor.

Methods

 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs