com.realtime.crossfire.jxclient.faces
Class ImageScale8d

java.lang.Object
  extended by com.realtime.crossfire.jxclient.faces.ImageScale8d

public class ImageScale8d
extends java.lang.Object

A utility to scale down an image by 8 in both dimensions.


Field Summary
private  int height
          The height of the image.
private  int[] srcData
          The source data from the image.
private  int width
          The width of the image.
 
Constructor Summary
ImageScale8d(javax.swing.Icon srcImageIcon)
          Creates a new instance.
 
Method Summary
 javax.swing.ImageIcon getScaledImage()
          Returns the scaled image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

height

private final int height
The height of the image.


srcData

@NotNull
private final int[] srcData
The source data from the image.


width

private final int width
The width of the image.

Constructor Detail

ImageScale8d

public ImageScale8d(@NotNull
                    javax.swing.Icon srcImageIcon)
Creates a new instance.

Parameters:
srcImageIcon - the image to scale
Method Detail

getScaledImage

@NotNull
public javax.swing.ImageIcon getScaledImage()
Returns the scaled image. Note this is the method that actually does the work so it may take some time to return.

Returns:
the scaled image