org.xwt.plat
Class Win32.Win32PixelBuffer
java.lang.Object
org.xwt.PixelBuffer
org.xwt.plat.Win32.Win32PixelBuffer
- Enclosing class:
- Win32
- public static class Win32.Win32PixelBuffer
- extends PixelBuffer
Method Summary |
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 |
drawPicture(Picture source,
int dx,
int dy,
int cx1,
int cy1,
int cx2,
int cy2,
int rgb,
boolean alphaOnly)
|
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 |
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()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Win32.Win32PixelBuffer
public Win32.Win32PixelBuffer(int w,
int h,
Win32.Win32Surface owner)
getHeight
public int getHeight()
getWidth
public int getWidth()
natInit
public void natInit()
fillRect
public void fillRect(int x,
int y,
int x2,
int y2,
int color)
drawPicture
public void drawPicture(Picture source,
int dx,
int dy,
int cx1,
int cy1,
int cx2,
int cy2)
- Description copied from class:
PixelBuffer
- draw the picture at (dx1, dy1), cropping to (cx1, cy1, cx2, cy2)
- Specified by:
drawPicture
in class PixelBuffer
drawPictureAlphaOnly
public void drawPictureAlphaOnly(Picture source,
int dx,
int dy,
int cx1,
int cy1,
int cx2,
int cy2,
int rgb)
- Description copied from class:
PixelBuffer
- 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. This method may assume that the RGB channels of the image are all zero IFF it
restores this invariant before returning.
- Specified by:
drawPictureAlphaOnly
in class PixelBuffer
drawPicture
public void drawPicture(Picture source,
int dx,
int dy,
int cx1,
int cy1,
int cx2,
int cy2,
int rgb,
boolean alphaOnly)
finalize
public void finalize()
fillTrapezoid
public void fillTrapezoid(int x1,
int x2,
int y1,
int x3,
int x4,
int y2,
int argb)
- Description copied from class:
PixelBuffer
- fill a trapezoid whose top and bottom edges are horizontal
- Specified by:
fillTrapezoid
in class PixelBuffer