java.awt
Class TexturePaintContext
java.lang.Object
|
+--java.awt.TexturePaintContext
- All Implemented Interfaces:
- PaintContext
- Direct Known Subclasses:
- java.awt.TexturePaintContext.Any, java.awt.TexturePaintContext.Byte, java.awt.TexturePaintContext.ByteFilter, java.awt.TexturePaintContext.Int
- abstract class TexturePaintContext
- extends Object
- implements PaintContext
Constructor Summary |
(package private) |
TexturePaintContext(java.awt.image.ColorModel cm,
java.awt.geom.AffineTransform xform,
int bWidth,
int bHeight,
int maxw)
|
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(java.awt.image.Raster outRas)
|
(package private) static void |
dropRaster(java.awt.image.ColorModel cm,
java.awt.image.Raster outRas)
|
(package private) static int |
fractAsInt(double d)
|
java.awt.image.ColorModel |
getColorModel()
Return the ColorModel of the output. |
static PaintContext |
getContext(java.awt.image.BufferedImage bufImg,
java.awt.geom.AffineTransform xform,
RenderingHints hints,
Rectangle devBounds)
|
static java.awt.image.ColorModel |
getInternedColorModel(java.awt.image.ColorModel cm)
|
java.awt.image.Raster |
getRaster(int x,
int y,
int w,
int h)
Return a Raster containing the colors generated for the graphics
operation. |
static boolean |
isFilterableDCM(java.awt.image.ColorModel cm)
|
static boolean |
isFilterableICM(java.awt.image.ColorModel cm)
|
static boolean |
isMaskOK(int mask,
boolean canbezero)
|
(package private) static java.awt.image.WritableRaster |
makeByteRaster(java.awt.image.Raster srcRas,
int w,
int h)
|
(package private) static java.awt.image.WritableRaster |
makeRaster(java.awt.image.ColorModel cm,
java.awt.image.Raster srcRas,
int w,
int h)
|
abstract java.awt.image.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 java.awt.image.ColorModel xrgbmodel
argbmodel
public static java.awt.image.ColorModel argbmodel
colorModel
java.awt.image.ColorModel colorModel
bWidth
int bWidth
bHeight
int bHeight
maxWidth
int maxWidth
outRas
java.awt.image.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 java.lang.ref.WeakReference xrgbRasRef
argbRasRef
private static java.lang.ref.WeakReference argbRasRef
byteRasRef
private static java.lang.ref.WeakReference byteRasRef
TexturePaintContext
TexturePaintContext(java.awt.image.ColorModel cm,
java.awt.geom.AffineTransform xform,
int bWidth,
int bHeight,
int maxw)
getContext
public static PaintContext getContext(java.awt.image.BufferedImage bufImg,
java.awt.geom.AffineTransform xform,
RenderingHints hints,
Rectangle devBounds)
isFilterableICM
public static boolean isFilterableICM(java.awt.image.ColorModel cm)
isFilterableDCM
public static boolean isFilterableDCM(java.awt.image.ColorModel cm)
isMaskOK
public static boolean isMaskOK(int mask,
boolean canbezero)
getInternedColorModel
public static java.awt.image.ColorModel getInternedColorModel(java.awt.image.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 java.awt.image.ColorModel getColorModel()
- Return the ColorModel of the output.
- Specified by:
getColorModel
in interface PaintContext
- Returns:
- the
ColorModel
of the output.
getRaster
public java.awt.image.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:
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 java.awt.image.WritableRaster makeRaster(java.awt.image.ColorModel cm,
java.awt.image.Raster srcRas,
int w,
int h)
dropRaster
static void dropRaster(java.awt.image.ColorModel cm,
java.awt.image.Raster outRas)
makeByteRaster
static java.awt.image.WritableRaster makeByteRaster(java.awt.image.Raster srcRas,
int w,
int h)
dropByteRaster
static void dropByteRaster(java.awt.image.Raster outRas)
makeRaster
public abstract java.awt.image.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)
comments?