java.awt
Class TexturePaintContext.Byte
java.lang.Object
java.awt.TexturePaintContext
java.awt.TexturePaintContext.Byte
- All Implemented Interfaces:
- PaintContext
- Enclosing class:
- TexturePaintContext
- static class TexturePaintContext.Byte
- extends TexturePaintContext
Method Summary |
static int |
blend(int[] rgbs,
int xmul,
int ymul)
|
void |
dispose()
Release the resources allocated for the operation. |
(package private) static void |
dropByteRaster(Raster outRas)
|
(package private) static void |
dropRaster(ColorModel cm,
Raster outRas)
|
(package private) static int |
fractAsInt(double d)
|
ColorModel |
getColorModel()
Return the ColorModel of the output. |
static PaintContext |
getContext(BufferedImage bufImg,
AffineTransform xform,
RenderingHints hints,
Rectangle devBounds)
|
static ColorModel |
getInternedColorModel(ColorModel cm)
|
Raster |
getRaster(int x,
int y,
int w,
int h)
Return a Raster containing the colors generated for the graphics
operation. |
static boolean |
isFilterableDCM(ColorModel cm)
|
static boolean |
isFilterableICM(ColorModel cm)
|
static boolean |
isMaskOK(int mask,
boolean canbezero)
|
(package private) static WritableRaster |
makeByteRaster(Raster srcRas,
int w,
int h)
|
(package private) static WritableRaster |
makeRaster(ColorModel cm,
Raster srcRas,
int w,
int h)
|
WritableRaster |
makeRaster(int w,
int h)
|
(package private) static double |
mod(double num,
double den)
|
void |
setRaster(int x,
int y,
int xerr,
int yerr,
int w,
int h,
int bWidth,
int bHeight,
int colincx,
int colincxerr,
int colincy,
int colincyerr,
int rowincx,
int rowincxerr,
int rowincy,
int rowincyerr)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
srcRas
sun.awt.image.ByteInterleavedRaster srcRas
inData
byte[] inData
inOff
int inOff
inSpan
int inSpan
outData
byte[] outData
outOff
int outOff
outSpan
int outSpan
xrgbmodel
public static ColorModel xrgbmodel
argbmodel
public static ColorModel argbmodel
colorModel
ColorModel colorModel
bWidth
int bWidth
bHeight
int bHeight
maxWidth
int maxWidth
outRas
WritableRaster outRas
xOrg
double xOrg
yOrg
double yOrg
incXAcross
double incXAcross
incYAcross
double incYAcross
incXDown
double incXDown
incYDown
double incYDown
colincx
int colincx
colincy
int colincy
colincxerr
int colincxerr
colincyerr
int colincyerr
rowincx
int rowincx
rowincy
int rowincy
rowincxerr
int rowincxerr
rowincyerr
int rowincyerr
TexturePaintContext.Byte
public TexturePaintContext.Byte(sun.awt.image.ByteInterleavedRaster srcRas,
ColorModel cm,
AffineTransform xform,
int maxw)
makeRaster
public WritableRaster makeRaster(int w,
int h)
- Specified by:
makeRaster
in class TexturePaintContext
dispose
public void dispose()
- Description copied from class:
TexturePaintContext
- Release the resources allocated for the operation.
- Specified by:
dispose
in interface PaintContext
- Overrides:
dispose
in class TexturePaintContext
setRaster
public void setRaster(int x,
int y,
int xerr,
int yerr,
int w,
int h,
int bWidth,
int bHeight,
int colincx,
int colincxerr,
int colincy,
int colincyerr,
int rowincx,
int rowincxerr,
int rowincy,
int rowincyerr)
- Specified by:
setRaster
in class TexturePaintContext
getContext
public static PaintContext getContext(BufferedImage bufImg,
AffineTransform xform,
RenderingHints hints,
Rectangle devBounds)
isFilterableICM
public static boolean isFilterableICM(ColorModel cm)
isFilterableDCM
public static boolean isFilterableDCM(ColorModel cm)
isMaskOK
public static boolean isMaskOK(int mask,
boolean canbezero)
getInternedColorModel
public static ColorModel getInternedColorModel(ColorModel cm)
fractAsInt
static int fractAsInt(double d)
mod
static double mod(double num,
double den)
getColorModel
public ColorModel getColorModel()
- Return the ColorModel of the output.
- Specified by:
getColorModel
in interface PaintContext
- Returns:
- the
ColorModel
of the output.
getRaster
public Raster getRaster(int x,
int y,
int w,
int h)
- Return a Raster containing the colors generated for the graphics
operation.
- Specified by:
getRaster
in interface PaintContext
- Parameters:
x
- the x coordinate of the area in device space
for which colors are generated.y
- the y coordinate of the area in device space
for which colors are generated.w
- the width of the area in device spaceh
- the height of the area in device space
- Returns:
- a
Raster
representing the specified
rectangular area and containing the colors generated for
the graphics operation.
makeRaster
static WritableRaster makeRaster(ColorModel cm,
Raster srcRas,
int w,
int h)
dropRaster
static void dropRaster(ColorModel cm,
Raster outRas)
makeByteRaster
static WritableRaster makeByteRaster(Raster srcRas,
int w,
int h)
dropByteRaster
static void dropByteRaster(Raster outRas)
blend
public static int blend(int[] rgbs,
int xmul,
int ymul)