Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.faces.ImageScale2x Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.faces.ImageScale2x:
Collaboration graph

Public Member Functions

ImageIcon getScaledImage ()
 
 ImageScale2x (@NotNull final Icon srcImageIcon)
 

Private Attributes

final int height
 
final int[] srcData
 
final int width
 

Detailed Description

A utility to perform the scale2x algorithm on a Java Image.

Author
Kevin Glass

Definition at line 34 of file ImageScale2x.java.

Constructor & Destructor Documentation

◆ ImageScale2x()

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

Creates a new scaler that will scale the passed image.

Parameters
srcImageIconthe image to be scaled

Definition at line 55 of file ImageScale2x.java.

References com.realtime.crossfire.jxclient.faces.ImageScale2x.height, com.realtime.crossfire.jxclient.faces.ImageScale2x.srcData, and com.realtime.crossfire.jxclient.faces.ImageScale2x.width.

Member Function Documentation

◆ getScaledImage()

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

References com.realtime.crossfire.jxclient.faces.RawScale2x.getScaledData(), com.realtime.crossfire.jxclient.faces.ImageScale2x.height, com.realtime.crossfire.jxclient.faces.ImageScale2x.srcData, and com.realtime.crossfire.jxclient.faces.ImageScale2x.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.ImageScale2x.height
private

◆ srcData

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

◆ width

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

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