Class CLNImageView2DFixedU4444

java.lang.Object
com.io7m.calino.imageview.internal.CLNImageView2DFixedU4444
All Implemented Interfaces:
CLNImageView2DType

public final class CLNImageView2DFixedU4444 extends Object implements CLNImageView2DType
An unsigned 4444 view.
  • Constructor Details

    • CLNImageView2DFixedU4444

      public CLNImageView2DFixedU4444(CLNImageInfo inImageInfo, int mipLevel, byte[] inData)
      An unsigned 4444 view.
      Parameters:
      inData - The image data
      mipLevel - The mip level
      inImageInfo - The image info
  • Method Details

    • sizeX

      public int sizeX()
      Specified by:
      sizeX in interface CLNImageView2DType
      Returns:
      The size of the view on the X axis
    • sizeY

      public int sizeY()
      Specified by:
      sizeY in interface CLNImageView2DType
      Returns:
      The size of the view on the Y axis
    • pixelAt

      public void pixelAt(int x, int y, double[] pixel)
      Description copied from interface: CLNImageView2DType
      Sample a pixel at the given location.
      Specified by:
      pixelAt in interface CLNImageView2DType
      Parameters:
      x - The x location
      y - The y location
      pixel - The output pixel