Crossfire JXClient, Trunk  R20561
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 33 of file ImageScale8d.java.

Constructor & Destructor Documentation

◆ ImageScale8d()

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

Creates a new instance.

Parameters
srcImageIconthe image to scale

Definition at line 55 of file ImageScale8d.java.

References com.realtime.crossfire.jxclient.faces.ImageScale8d.height.

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().

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

The height of the image.

Definition at line 49 of file ImageScale8d.java.

Referenced by com.realtime.crossfire.jxclient.faces.ImageScale8d.ImageScale8d().

◆ srcData

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

The source data from the image.

Definition at line 39 of file ImageScale8d.java.

◆ width

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

The width of the image.

Definition at line 44 of file ImageScale8d.java.


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