Class RawScale2x

java.lang.Object
com.realtime.crossfire.jxclient.faces.RawScale2x

public class RawScale2x extends Object
A simple implementation of the Scale2x algorithm for scaling raw image data.
  • 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 data
      dataWidth - the width of the source image
      dataHeight - 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