public final class ImageProxy extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageProxy.RGB
Helper class for representing RGB values.
|
| Modifier and Type | Method and Description |
|---|---|
static ImageProxy |
create()
Creates an image proxy.
|
int |
getBlueMask()
Returns the blue mask for a
Palette. |
byte[] |
getData() |
int |
getDepth() |
int |
getGreenMask()
Returns the green mask for a
Palette. |
int |
getHeight() |
ImageProxy.RGB[] |
getPaletteColors()
Returns the palette colors.
|
int |
getRedMask()
Returns the red mask for a
Palette. |
int |
getScanlinePad() |
int |
getWidth() |
boolean |
isDirect()
Whether this is a palette is direct.
|
ImageProxy |
setBlueMask(int mask)
Sets the blue mask for a
Palette. |
ImageProxy |
setData(byte[] data)
Sets the actual image data.
|
ImageProxy |
setDepth(int depth)
Sets the color depth.
|
ImageProxy |
setGreenMask(int mask)
Sets the green mask for a
Palette. |
ImageProxy |
setHeight(int height)
Sets the height of an image.
|
ImageProxy |
setPaletteColors(ImageProxy.RGB[] colors)
Set palette colors, the palette direct flag is set to false.
|
ImageProxy |
setRedMask(int mask)
Sets the red mask for a
Palette. |
ImageProxy |
setScanlinePad(int scanlinePad)
Sets the scanline pad.
|
void |
setWidth(int width) |
ImageProxy |
setWitdh(int width)
Sets the width of an image.
|
public static ImageProxy create()
public ImageProxy setWitdh(int width)
width - the widthImageProxypublic ImageProxy setHeight(int height)
height - the heightImageProxypublic ImageProxy setDepth(int depth)
depth - the color depthImageProxypublic ImageProxy setScanlinePad(int scanlinePad)
scanlinePad - the scanline padImageProxypublic ImageProxy setData(byte[] data)
data - the image data as a byte arrayImageProxypublic int getWidth()
public void setWidth(int width)
width - the width to setpublic int getHeight()
public byte[] getData()
public int getDepth()
public int getScanlinePad()
public int getRedMask()
Palette.public int getGreenMask()
Palette.public int getBlueMask()
Palette.public ImageProxy setRedMask(int mask)
Palette.mask - the red maskImageProxypublic ImageProxy setGreenMask(int mask)
Palette.mask - the green maskImageProxypublic ImageProxy setBlueMask(int mask)
Palette.mask - the blue maskImageProxypublic ImageProxy setPaletteColors(ImageProxy.RGB[] colors)
colors - colors to setImageProxypublic ImageProxy.RGB[] getPaletteColors()
public boolean isDirect()
true, if this palette is direct, false otherwise.Copyright © 2017. All rights reserved.