Package heronarts.glx

Class GLXUtils.Image

java.lang.Object
heronarts.glx.GLXUtils.Image
Enclosing class:
GLXUtils

public static class GLXUtils.Image extends Object
  • Field Details

    • width

      public final int width
    • height

      public final int height
  • Method Details

    • get

      public int get(int x, int y)
      Get the ARGB color of pixel at coordinate x,y
      Parameters:
      x - Pixel x-coord
      y - Pixel y-coord
      Returns:
      Color value in ARGB format
    • getNormalized

      public int getNormalized(float x, float y)
    • getAspectRatio

      public float getAspectRatio()