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

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

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

Public Member Functions

ImageIcon getScaledImage ()
 Retrieves the scaled image. More...
 
 ImageScale2x (@NotNull final Icon srcImageIcon)
 Creates a new scaler that will scale the passed image. More...
 

Static Public Member Functions

static void main (@NotNull final String[] args)
 An entry point and a bit of test code. More...
 

Private Attributes

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

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 56 of file ImageScale2x.java.

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

Referenced by com.realtime.crossfire.jxclient.faces.ImageScale2x.main().

+ Here is the caller graph for this function:

Member Function Documentation

◆ getScaledImage()

ImageIcon com.realtime.crossfire.jxclient.faces.ImageScale2x.getScaledImage ( )

Retrieves 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 72 of file ImageScale2x.java.

References com.realtime.crossfire.jxclient.faces.RawScale2x.getScaledData().

Referenced by com.realtime.crossfire.jxclient.faces.ImageScale2x.main(), and com.realtime.crossfire.jxclient.faces.FaceImagesUtils.newFaceImages().

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

◆ main()

static void com.realtime.crossfire.jxclient.faces.ImageScale2x.main ( @NotNull final String []  args)
static

An entry point and a bit of test code.

Parameters
argsthe command-line arguments (ignored)

Definition at line 85 of file ImageScale2x.java.

References com.realtime.crossfire.jxclient.faces.ImageScale2x.getScaledImage(), com.realtime.crossfire.jxclient.faces.ImageScale2x.ImageScale2x(), and com.realtime.crossfire.jxclient.faces.FileCache.save().

+ Here is the call graph for this function:

Member Data Documentation

◆ height

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

The height of the image.

Definition at line 50 of file ImageScale2x.java.

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

◆ srcData

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

The src data from the image.

Definition at line 40 of file ImageScale2x.java.

◆ width

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

The width of the image.

Definition at line 45 of file ImageScale2x.java.


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