|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xwt.PixelBuffer org.xwt.plat.X11.X11PixelBuffer
An X11PixelBuffer is implemented as an X11 pixmap. "Normal" PixelBuffers will use XShm shared pixmaps if available. X11PixelBuffers created to accelerate Pictures with all-or-nothing alpha will not use shared pixmaps, however (since they are only written to once.
Constructor Summary | |
X11.X11PixelBuffer(int w,
int h)
PixelBuffer mode |
|
X11.X11PixelBuffer(int w,
int h,
boolean shared_pixmap)
|
Method Summary | |
void |
createStipple(X11.X11Picture xpi)
Sets the PixelBuffer's internal stipple to the alpha==0x00 regions of xpi |
void |
drawPicture(Picture source,
int dx,
int dy,
int cx1,
int cy1,
int cx2,
int cy2)
draw the picture at (dx1, dy1), cropping to (cx1, cy1, cx2, cy2) |
void |
drawPictureAlphaOnly(Picture source,
int dx,
int dy,
int cx1,
int cy1,
int cx2,
int cy2,
int rgb)
Same as drawPicture, but only uses the alpha channel of the Picture, and is allowed to destructively modify the RGB channels of the Picture in the process. |
void |
fastDrawPicture(Picture source,
int dx,
int dy,
int cx1,
int cy1,
int cx2,
int cy2)
fast path for image drawing (no scaling, all-or-nothing alpha) |
void |
fillRect(int x,
int y,
int x2,
int y2,
int color)
|
void |
fillTrapezoid(int x1,
int x2,
int y1,
int x3,
int x4,
int y2,
int argb)
fill a trapezoid whose top and bottom edges are horizontal |
void |
finalize()
|
int |
getHeight()
|
int |
getWidth()
|
void |
natInit()
|
void |
slowDrawPicture(Picture source,
int dx,
int dy,
int cx1,
int cy1,
int cx2,
int cy2,
int rgb,
boolean alphaOnly)
slow path for image drawing |
Methods inherited from class org.xwt.PixelBuffer |
drawLine |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public X11.X11PixelBuffer(int w, int h)
public X11.X11PixelBuffer(int w, int h, boolean shared_pixmap)
Method Detail |
public void createStipple(X11.X11Picture xpi)
public void drawPictureAlphaOnly(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb)
PixelBuffer
drawPictureAlphaOnly
in class PixelBuffer
public void drawPicture(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2)
PixelBuffer
drawPicture
in class PixelBuffer
public void fastDrawPicture(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2)
public void slowDrawPicture(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb, boolean alphaOnly)
public int getWidth()
public int getHeight()
public void natInit()
public void fillRect(int x, int y, int x2, int y2, int color)
public void finalize()
public void fillTrapezoid(int x1, int x2, int y1, int x3, int x4, int y2, int argb)
PixelBuffer
fillTrapezoid
in class PixelBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |