Image
- The native Image Typepublic interface ImageData<Image>
Modifier and Type | Method and Description |
---|---|
int |
getA(int x,
int y)
get the alpha (transparency) value at a specified coordinate
|
int |
getB(int x,
int y)
get the blue value at a specified coordinate
|
int |
getG(int x,
int y)
get the green value at a specified coordinate
|
double |
getHeight()
get the height.
|
Image |
getImage() |
int |
getR(int x,
int y)
get the red value at a specified coordinate
|
double |
getWidth()
get the width
|
void |
setA(int x,
int y,
int value)
set the alpha (transparency) value at a specified coordinate
|
void |
setB(int x,
int y,
int value)
set the blue value at a specified coordinate
|
void |
setData(int[] data)
set all data at once
|
void |
setG(int x,
int y,
int value)
set the green value at a specified coordinate
|
void |
setR(int x,
int y,
int value)
set the red value at a specified coordinate
|
double getHeight()
double getWidth()
int getR(int x, int y)
x
- x coordinatey
- y coordinateint getG(int x, int y)
x
- x coordinatey
- y coordinateint getB(int x, int y)
x
- x coordinatey
- y coordinateint getA(int x, int y)
x
- x coordinatey
- y coordinatevoid setR(int x, int y, int value)
x
- x coordinatey
- y coordinatevalue
- the red value as an int (0 - 255)void setG(int x, int y, int value)
x
- x coordinatey
- y coordinatevalue
- the green value as an int (0 - 255)void setB(int x, int y, int value)
x
- x coordinatey
- y coordinatevalue
- the blue value as an int (0 - 255)void setA(int x, int y, int value)
x
- x coordinatey
- y coordinatevalue
- the alpha value as an int (0 - 255)void setData(int[] data)
data
- Image getImage()
Copyright © 2018. All Rights Reserved.