Class games.image.RotateImageFilter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class games.image.RotateImageFilter

java.lang.Object
   |
   +----java.awt.image.ImageFilter
           |
           +----games.image.RotateImageFilter

public class RotateImageFilter
extends ImageFilter
RotateImageFilter is an image processing filter extending ImageFilter which rotates an image in 90 degree intervals either clockwise (positive increments) or counterclockwise (negative increments).

Constructor Index

 o RotateImageFilter(int)
Constructs a RotateFilter that rotates in clockwise 90 degree increments on a positive number and counter- clockwise 90 degree increments on a negative number.

Method Index

 o setDimensions(int, int)
Override the source image's dimensions and pass the dimensions of the rotated image on to the ImageConsumer.
 o setPixels(int, int, int, int, ColorModel, byte[], int, int)
Converts an image given as an array of bytes to its rotated form.
 o setPixels(int, int, int, int, ColorModel, int[], int, int)
This version has not been implemented.
 o setProperties(Hashtable)
Pass the properties from the source object along after adding a property indicating the rotation magnitude and direction.

Constructors

 o RotateImageFilter
  public RotateImageFilter(int dir)
Constructs a RotateFilter that rotates in clockwise 90 degree increments on a positive number and counter- clockwise 90 degree increments on a negative number.
Parameters:
dir - the magnitude and direction of the rotatation

Methods

 o setProperties
  public void setProperties(Hashtable props)
Pass the properties from the source object along after adding a property indicating the rotation magnitude and direction.
Overrides:
setProperties in class ImageFilter
 o setDimensions
  public void setDimensions(int w,
                            int h)
Override the source image's dimensions and pass the dimensions of the rotated image on to the ImageConsumer.
Overrides:
setDimensions in class ImageFilter
See Also:
ImageConsumer
 o setPixels
  public void setPixels(int x,
                        int y,
                        int w,
                        int h,
                        ColorModel model,
                        byte pixels[],
                        int off,
                        int scansize)
Converts an image given as an array of bytes to its rotated form.
Overrides:
setPixels in class ImageFilter
 o setPixels
  public void setPixels(int x,
                        int y,
                        int w,
                        int h,
                        ColorModel model,
                        int pixels[],
                        int off,
                        int scansize)
This version has not been implemented.
Overrides:
setPixels in class ImageFilter

All Packages  Class Hierarchy  This Package  Previous  Next  Index