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