Package heronarts.glx
Class GLXUtils.Image
java.lang.Object
heronarts.glx.GLXUtils.Image
- Enclosing class:
GLXUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintget(int x, int y) Get the ARGB color of pixel at coordinate x,yfloatintgetNormalized(float x, float y)
-
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-coordy- Pixel y-coord- Returns:
- Color value in ARGB format
-
getNormalized
public int getNormalized(float x, float y) -
getAspectRatio
public float getAspectRatio()
-