edu.gatech.cs2335.lemmings.graphics
Class ImageUtilities

java.lang.Object
  extended byedu.gatech.cs2335.lemmings.graphics.ImageUtilities

public class ImageUtilities
extends java.lang.Object

Class ImageUtilities: contains certain utility functions that can be useful for various image manipulating classes.

 Revision History:
     v1.0 (Mar. 12, 2004) - Created the ImageUtilities class
 

Version:
Version 1.0, Mar. 12, 2004
Author:
Vladimir Urazov

Method Summary
 java.awt.Cursor createBlankCursor()
          Creates an invisible cursor.
static ImageUtilities getInstance()
          Singleton Implementation.
 java.awt.Color getPixel(java.awt.image.BufferedImage image, int x, int y)
          Returns the color of the pixel at the specified coordinates of the image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ImageUtilities getInstance()
Singleton Implementation.

Returns:
an ImageUtilities value

getPixel

public java.awt.Color getPixel(java.awt.image.BufferedImage image,
                               int x,
                               int y)
Returns the color of the pixel at the specified coordinates of the image.

Parameters:
image - a BufferedImage value
x - an int value
y - an int value
Returns:
a Color value

createBlankCursor

public java.awt.Cursor createBlankCursor()
Creates an invisible cursor.

Returns:
a Cursor value