java.awt
Class TexturePaintContext
java.lang.Object
java.awt.TexturePaintContext
- All Implemented Interfaces:
- PaintContext
- Direct Known Subclasses:
- TexturePaintContext.Any, TexturePaintContext.Byte, TexturePaintContext.ByteFilter, TexturePaintContext.Int
- abstract class TexturePaintContext
- extends Object
- implements PaintContext
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)
|
abstract WritableRaster |
makeRaster(int w,
int h)
|
(package private) static double |
mod(double num,
double den)
|
abstract 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 |
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
xrgbRasRef
private static WeakReference xrgbRasRef
argbRasRef
private static WeakReference argbRasRef
byteRasRef
private static WeakReference byteRasRef
TexturePaintContext
TexturePaintContext(ColorModel cm,
AffineTransform xform,
int bWidth,
int bHeight,
int maxw)
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)
dispose
public void dispose()
- Release the resources allocated for the operation.
- Specified by:
dispose
in interface PaintContext
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)
makeRaster
public abstract WritableRaster makeRaster(int w,
int h)
setRaster
public abstract 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)
blend
public static int blend(int[] rgbs,
int xmul,
int ymul)