Class Reflect

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Reflect

public class Reflect
extends java.lang.Thread

Reflect is an algorithm to reflect an image about an axis

Author:
Craig Strachan after Judy Robertson, SELLIC Online
See Also:
code.iface.reflect

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Reflect()
           
 
Method Summary
 int[] reflect_image(int[] src, int width, int height, int x, int y, double angle, boolean wrap)
          Reflects the input image by the specified angle.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Reflect

public Reflect()
Method Detail

reflect_image

public int[] reflect_image(int[] src,
                           int width,
                           int height,
                           int x,
                           int y,
                           double angle,
                           boolean wrap)
Reflects the input image by the specified angle. This reflection happens about a line defined through the specified point.
Parameters:
src - The input pixel array
width - The width of the input image
height - The height of the input image
x - The x co-ordiante used to find the reflection axis
y - The y co-ordinate used to find the reflection axis
angle - The angle of the reflection axis
wrap - Boolean which determines if the reflected image is wrapped around
Returns:
The reflected image array