|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Image
java.awt.image.BufferedImage
org.jagatoo.util.image.DirectBufferedImage
public class DirectBufferedImage
Manager for a greyscale alpha mask which can be used to blend bitmaps onto a surface.
| Field Summary | |
|---|---|
static int |
DIRECT_GRAY
|
static int |
DIRECT_RGB
|
static int |
DIRECT_RGBA
|
| Fields inherited from class java.awt.image.BufferedImage |
|---|
TYPE_3BYTE_BGR, TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE, TYPE_BYTE_BINARY, TYPE_BYTE_GRAY, TYPE_BYTE_INDEXED, TYPE_CUSTOM, TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_INT_RGB, TYPE_USHORT_555_RGB, TYPE_USHORT_565_RGB, TYPE_USHORT_GRAY |
| Fields inherited from class java.awt.Image |
|---|
accelerationPriority, SCALE_AREA_AVERAGING, SCALE_DEFAULT, SCALE_FAST, SCALE_REPLICATE, SCALE_SMOOTH, UndefinedProperty |
| Fields inherited from interface java.awt.Transparency |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| Method Summary | |
|---|---|
byte[] |
getBackingStore()
|
static java.awt.image.BufferedImage |
getCustomRGB(int width,
int height)
|
static java.awt.image.BufferedImage |
getCustomRGBA(int width,
int height)
|
static DirectBufferedImage |
getDirectImageGrey(int width,
int height)
|
static DirectBufferedImage |
getDirectImageRGB(int width,
int height)
Creates a buffered image which is backed by a NIO byte buffer |
static DirectBufferedImage |
getDirectImageRGB(int width,
int height,
int pixelSize)
Creates a buffered image which is backed by a NIO byte buffer |
static DirectBufferedImage |
getDirectImageRGB(int width,
int height,
int pixelSize,
byte[] backingStore)
Creates a buffered image which is backed by a NIO byte buffer |
static DirectBufferedImage |
getDirectImageRGBA(int width,
int height)
Creates a buffered image which is backed by a NIO byte buffer |
static DirectBufferedImage |
getDirectImageRGBA(int width,
int height,
int pixelSize)
Creates a buffered image which is backed by a NIO byte buffer |
java.awt.image.WritableRaster |
getDirectRaster(int width,
int height,
int pixelBytes,
java.nio.ByteBuffer byteBuffer)
Creates a writable raster which is backed by the specified byteBuffer |
int |
getDirectType()
|
static java.awt.image.BufferedImage |
loadDirectImage(java.lang.String name)
|
static java.awt.image.BufferedImage |
loadDirectImage(java.lang.String name,
boolean expectAlpha)
reads in an image using image io. |
static java.awt.image.BufferedImage |
loadDirectImage(java.net.URL url)
|
static java.awt.image.BufferedImage |
loadDirectImage(java.net.URL url,
boolean expectAlpha)
reads in an image using image io. |
static DirectBufferedImage |
make(java.awt.image.BufferedImage bi)
|
static DirectBufferedImage |
make(java.awt.image.BufferedImage bi,
boolean expectAlpha)
|
static DirectBufferedImage |
make(int width,
int height,
int type)
|
static DirectBufferedImage |
makeDirectImageRGB(java.awt.image.BufferedImage source)
Takes the source buffered image and converts it to a buffered image which is backed by a direct byte buffer |
static DirectBufferedImage |
makeDirectImageRGBA(java.awt.image.BufferedImage source)
takes the source buffered image and converts it to a buffered image which is backed by a direct byte buffer |
void |
setDirectType(int directType)
|
| Methods inherited from class java.awt.image.BufferedImage |
|---|
addTileObserver, coerceData, copyData, createGraphics, flush, getAlphaRaster, getCapabilities, getColorModel, getData, getData, getGraphics, getHeight, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getProperty, getPropertyNames, getRaster, getRGB, getRGB, getSampleModel, getSource, getSources, getSubimage, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getTransparency, getType, getWidth, getWidth, getWritableTile, getWritableTileIndices, hasTileWriters, isAlphaPremultiplied, isTileWritable, releaseWritableTile, removeTileObserver, setData, setRGB, setRGB, toString |
| Methods inherited from class java.awt.Image |
|---|
getAccelerationPriority, getScaledInstance, setAccelerationPriority |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DIRECT_RGB
public static final int DIRECT_RGBA
public static final int DIRECT_GRAY
| Method Detail |
|---|
public void setDirectType(int directType)
public int getDirectType()
public static DirectBufferedImage make(int width,
int height,
int type)
public byte[] getBackingStore()
public java.awt.image.WritableRaster getDirectRaster(int width,
int height,
int pixelBytes,
java.nio.ByteBuffer byteBuffer)
width - Width of the imageheight - Height of the imagepixelBytes - Number of bytes in a pixel, usually 4byteBuffer - Buffer to use as backing store
public static java.awt.image.BufferedImage getCustomRGB(int width,
int height)
public static java.awt.image.BufferedImage getCustomRGBA(int width,
int height)
public static DirectBufferedImage getDirectImageRGB(int width,
int height)
public static DirectBufferedImage getDirectImageRGB(int width,
int height,
int pixelSize)
public static DirectBufferedImage getDirectImageRGB(int width,
int height,
int pixelSize,
byte[] backingStore)
public static DirectBufferedImage getDirectImageGrey(int width,
int height)
public static DirectBufferedImage getDirectImageRGBA(int width,
int height)
public static DirectBufferedImage getDirectImageRGBA(int width,
int height,
int pixelSize)
public static DirectBufferedImage makeDirectImageRGB(java.awt.image.BufferedImage source)
source -
public static DirectBufferedImage makeDirectImageRGBA(java.awt.image.BufferedImage source)
source - public static DirectBufferedImage make(java.awt.image.BufferedImage bi)
public static DirectBufferedImage make(java.awt.image.BufferedImage bi,
boolean expectAlpha)
public static java.awt.image.BufferedImage loadDirectImage(java.lang.String name,
boolean expectAlpha)
throws java.io.IOException
name -
java.io.IOException
public static java.awt.image.BufferedImage loadDirectImage(java.lang.String name)
throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage loadDirectImage(java.net.URL url,
boolean expectAlpha)
throws java.io.IOException
url - expectAlpha -
java.io.IOException
public static java.awt.image.BufferedImage loadDirectImage(java.net.URL url)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||