Crossfire JXClient, Trunk
com.realtime.crossfire.jxclient.faces.ImageScale8d Class Reference

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

+ Collaboration diagram for com.realtime.crossfire.jxclient.faces.ImageScale8d:

Public Member Functions

ImageIcon getScaledImage ()
 Returns the scaled image. More...
 
 ImageScale8d (@NotNull final Icon srcImageIcon)
 Creates a new instance. More...
 

Private Attributes

final int height
 The height of the image. More...
 
final int[] srcData
 The source data from the image. More...
 
final int width
 The width of the image. More...
 

Detailed Description

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

Author
Andreas Kirschbaum

Definition at line 34 of file ImageScale8d.java.

Constructor & Destructor Documentation

◆ ImageScale8d()

com.realtime.crossfire.jxclient.faces.ImageScale8d.ImageScale8d ( @NotNull final Icon  srcImageIcon)

Member Function Documentation

◆ getScaledImage()

ImageIcon com.realtime.crossfire.jxclient.faces.ImageScale8d.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

Definition at line 71 of file ImageScale8d.java.

References com.realtime.crossfire.jxclient.faces.RawScale8d.getScaledData(), com.realtime.crossfire.jxclient.faces.ImageScale8d.height, com.realtime.crossfire.jxclient.faces.ImageScale8d.srcData, and com.realtime.crossfire.jxclient.faces.ImageScale8d.width.

Referenced by com.realtime.crossfire.jxclient.faces.FaceImagesUtils.newFaceImages().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ height

final int com.realtime.crossfire.jxclient.faces.ImageScale8d.height
private

◆ srcData

final int [] com.realtime.crossfire.jxclient.faces.ImageScale8d.srcData
private

◆ width

final int com.realtime.crossfire.jxclient.faces.ImageScale8d.width
private

The documentation for this class was generated from the following file: