Class Translate

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

public class Translate
extends java.lang.Thread

Translate is an algorithm to translate an image


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Translate()
           
 
Method Summary
 int[] translate_image(int[] src, int width, int height, int x, int y, boolean wrap)
          Translates an image of width width and height height
 
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

Translate

public Translate()
Method Detail

translate_image

public int[] translate_image(int[] src,
                             int width,
                             int height,
                             int x,
                             int y,
                             boolean wrap)
Translates an image of width width and height height
Parameters:
src - The input image array
width - The width of the input image
heigth - The height of the input image
x - The x translation value
y - The y translation value
wrap - Boolean which determines whether translated image should be wrapped
Returns:
The translated image array