public class ImageRGB extends Object implements Serializable
| Constructor and Description |
|---|
ImageRGB(BufferedImage img) |
ImageRGB(int width,
int height)
Creates an empty image with the specified height and width.
|
ImageRGB(int width,
int height,
int[] data) |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
createImage() |
int |
getBLUE(int x,
int y)
Returns the value of the blue color channel
|
int |
getGREEN(int x,
int y)
Returns the value of the green color channel
|
int |
getHeight() |
int[] |
getPixels() |
int |
getRED(int x,
int y)
Returns the value of the red color channel
|
int |
getRGB(int x,
int y)
Returns the RGB(a) value of the specified pixel.
|
int |
getWidth() |
void |
setBLUE(int x,
int y,
int blue) |
void |
setGREEN(int x,
int y,
int green) |
void |
setRED(int x,
int y,
int red) |
int |
setRGB(int x,
int y,
int rgba)
This sets the RGB value for the specified pixel.
|
int |
setRGB(int x,
int y,
int red,
int green,
int blue)
This functions sets the RGB value for the specified pixel.
|
public final int height
public final int width
public final int[] pixels
public ImageRGB(int width,
int height)
height - width - public ImageRGB(int width,
int height,
int[] data)
public ImageRGB(BufferedImage img)
public int getRGB(int x,
int y)
x - y - public int setRGB(int x,
int y,
int rgba)
x - y - rgba - public int setRGB(int x,
int y,
int red,
int green,
int blue)
x - y - red - green - blue - public int getRED(int x,
int y)
x - y - public void setRED(int x,
int y,
int red)
public int getGREEN(int x,
int y)
x - y - public void setGREEN(int x,
int y,
int green)
public int getBLUE(int x,
int y)
x - y - public void setBLUE(int x,
int y,
int blue)
public int getHeight()
public int getWidth()
public int[] getPixels()
public BufferedImage createImage()
Copyright © 2015. All rights reserved.