public class BitmapImage
extends java.lang.Object
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTE_PIXEL |
static int |
INT_PIXEL |
static int |
NO_PIXEL |
static int |
SHORT_PIXEL |
| Constructor and Description |
|---|
BitmapImage(int width,
int height,
int depth,
java.awt.image.ColorModel colorModel) |
BitmapImage(int width,
int height,
int depth,
java.awt.image.ColorModel colorModel,
boolean isInterleaved) |
BitmapImage(int width,
int height,
int depth,
java.awt.image.ColorModel colorModel,
int bitStride,
int scanlineStride) |
| Modifier and Type | Method and Description |
|---|---|
BitmapImage |
clone() |
void |
convertFromChunky(java.awt.image.BufferedImage image) |
int |
convertToChunky() |
int |
convertToChunky(int top,
int left,
int bottom,
int right) |
void |
flushPixels() |
byte[] |
getBitmap() |
int |
getBitplaneStride() |
byte[] |
getBytePixels() |
java.awt.image.ColorModel |
getChunkyColorModel() |
int |
getDepth() |
int |
getHeight() |
int[] |
getIntPixels() |
int |
getPixelType() |
java.awt.image.ColorModel |
getPlanarColorModel() |
int |
getScanlineStride() |
short[] |
getShortPixels() |
int |
getWidth() |
boolean |
isEnforceDirectColors() |
void |
setBytePixels(byte[] buf) |
void |
setEnforceDirectColors(boolean b) |
void |
setIntPixels(int[] buf) |
void |
setPlanarColorModel(java.awt.image.ColorModel colorModel) |
void |
setPreferredChunkyColorModel(java.awt.image.ColorModel colorModel) |
void |
setShortPixels(short[] buf) |
public static final int BYTE_PIXEL
public static final int INT_PIXEL
public static final int SHORT_PIXEL
public static final int NO_PIXEL
public BitmapImage(int width,
int height,
int depth,
java.awt.image.ColorModel colorModel)
public BitmapImage(int width,
int height,
int depth,
java.awt.image.ColorModel colorModel,
boolean isInterleaved)
public BitmapImage(int width,
int height,
int depth,
java.awt.image.ColorModel colorModel,
int bitStride,
int scanlineStride)
public void setEnforceDirectColors(boolean b)
public boolean isEnforceDirectColors()
public int getWidth()
public int getHeight()
public int getDepth()
public int getScanlineStride()
public int getBitplaneStride()
public void setPlanarColorModel(java.awt.image.ColorModel colorModel)
public java.awt.image.ColorModel getPlanarColorModel()
public void setPreferredChunkyColorModel(java.awt.image.ColorModel colorModel)
public java.awt.image.ColorModel getChunkyColorModel()
public byte[] getBitmap()
public byte[] getBytePixels()
public short[] getShortPixels()
public int[] getIntPixels()
public int getPixelType()
public BitmapImage clone()
clone in class java.lang.Objectpublic int convertToChunky()
public int convertToChunky(int top,
int left,
int bottom,
int right)
public void convertFromChunky(java.awt.image.BufferedImage image)
public void flushPixels()
public void setIntPixels(int[] buf)
public void setBytePixels(byte[] buf)
public void setShortPixels(short[] buf)
Copyright © 2022. All Rights Reserved.