public class PixelFormat extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
bigEndian |
int |
blueMax |
int |
blueShift |
int |
bpp |
int |
depth |
int |
greenMax |
int |
greenShift |
int |
redMax |
int |
redShift |
boolean |
trueColour |
| Constructor and Description |
|---|
PixelFormat() |
PixelFormat(int b,
int d,
boolean e,
boolean t) |
PixelFormat(int b,
int d,
boolean e,
boolean t,
int rm,
int gm,
int bm,
int rs,
int gs,
int bs) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferFromPixel(int[] buffer,
int bufPtr,
int p) |
void |
bufferFromRGB(int[] dst,
int dstPtr,
byte[] src,
int srcPtr,
int pixels) |
boolean |
equal(PixelFormat x) |
boolean |
is888() |
int |
pixelFromBuffer(byte[] buffer,
int bufferPtr) |
int |
pixelFromRGB(int red,
int green,
int blue,
ColorModel cm) |
String |
print() |
void |
read(InStream is) |
void |
rgbFromBuffer(byte[] dst,
int dstPtr,
byte[] src,
int srcPtr,
int pixels,
ColorModel cm) |
void |
write(OutStream os) |
public int bpp
public int depth
public boolean bigEndian
public boolean trueColour
public int redMax
public int greenMax
public int blueMax
public int redShift
public int greenShift
public int blueShift
public PixelFormat(int b,
int d,
boolean e,
boolean t)
public PixelFormat(int b,
int d,
boolean e,
boolean t,
int rm,
int gm,
int bm,
int rs,
int gs,
int bs)
public PixelFormat()
public boolean equal(PixelFormat x)
public void read(InStream is)
public void write(OutStream os)
public final boolean is888()
public int pixelFromRGB(int red,
int green,
int blue,
ColorModel cm)
public void bufferFromRGB(int[] dst,
int dstPtr,
byte[] src,
int srcPtr,
int pixels)
public void rgbFromBuffer(byte[] dst,
int dstPtr,
byte[] src,
int srcPtr,
int pixels,
ColorModel cm)
public int pixelFromBuffer(byte[] buffer,
int bufferPtr)
public String print()
public void bufferFromPixel(int[] buffer,
int bufPtr,
int p)
Copyright © 2019. All rights reserved.