Class DiagonalZigzagGen

java.lang.Object
net.paulhertz.pixelaudio.PixelMapGen
net.paulhertz.pixelaudio.DiagonalZigzagGen

public class DiagonalZigzagGen extends PixelMapGen
  • Field Details

  • Constructor Details

    • DiagonalZigzagGen

      public DiagonalZigzagGen(int width, int height, AffineTransformType type)
    • DiagonalZigzagGen

      public DiagonalZigzagGen(int width, int height)
  • Method Details

    • describe

      public String describe()
      Specified by:
      describe in class PixelMapGen
      Returns:
      A String describing the mapping generated by your class and any initialization requirements.
    • validate

      public boolean validate(int width, int height)
      Always returns true for width and height greater than 1.
      Specified by:
      validate in class PixelMapGen
      Returns:
      true if the width and height parameters are valid for creating a mapping with this generator, otherwise, false.
    • generate

      public int[] generate()
      Initialize this.coords, this.pixelMap, this.sampleMap.
      Specified by:
      generate in class PixelMapGen
      Returns:
      this.pixelMap, the value for PixelAudioMapper.signalToImageLUT.