Class RawScale2x
java.lang.Object
com.realtime.crossfire.jxclient.faces.RawScale2x
A simple implementation of the Scale2x algorithm for scaling raw image data.
-
Constructor Summary
ConstructorsConstructorDescriptionRawScale2x(int @NotNull [] imageData, int dataWidth, int dataHeight) Creates a new scaler based on some raw data. -
Method Summary
-
Constructor Details
-
RawScale2x
public RawScale2x(int @NotNull [] imageData, int dataWidth, int dataHeight) Creates a new scaler based on some raw data. Right now it doesn't matter what order the channels have, just that it's an int per pixel- Parameters:
imageData- the source image datadataWidth- the width of the source imagedataHeight- the height of the source image
-
-
Method Details
-
getScaledData
public int @NotNull [] getScaledData()Gets the scale image data. Note this is the method that does the work, so it might take some time to process.- Returns:
- an array of pixels 4 times the size of the input array containing the smoothly scaled image
-