Class CLNImageView2DFixedU32

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

public final class CLNImageView2DFixedU32 extends Object implements CLNImageView2DType
An unsigned fixed-point 32-bit view.
  • Constructor Details

    • CLNImageView2DFixedU32

      public CLNImageView2DFixedU32(CLNImageInfo inImageInfo, int mipLevel, byte[] inData, int inComponentCount)
      An unsigned fixed-point 32-bit view.
      Parameters:
      inComponentCount - The component count
      mipLevel - The mip level
      inData - The image data
      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