|
Public Member Functions |
| | Surface () |
| | Surface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) |
| native int | getFlags () |
| native int | getW () |
| native int | getH () |
| native int | getPitch () |
| native void | saveBMP (String filePath) |
| void | saveBMP (File file) |
| native int | blitSurface (Surface surface, int sx, int sy, int sw, int sh, int dx, int dy) |
| native int | blitSurface (Surface surface, int dx, int dy) |
| native int | blitSurface (Surface surface) |
| int | repeatSurface (Surface surface) |
| native void | fillRect (int sx, int sy, int sw, int sh, int color) |
| native void | fillRect (int color) |
| void | fillRect (Rect rect, int color) |
| native void | setColorKey (int flags, int colorkey) |
| native void | setColorKey (int flags) |
| void | setColorKey () |
| native boolean | setClipRect (int x, int y, int w, int h) |
| native boolean | setClipRect () |
| native int[] | getClipRect () |
| native int | setAlpha (int flags, int alpha) |
| native void | displayFormat () |
| native void | displayForamtAlpha () |
| native void | convertSurface (PixelFormat format, int flags) |
| native Surface | cloneSurface () |
| native PixelFormat | getPixelFormat () |
| native void | setPalette (Color[] palette) |
| native void | setPalette (Palette palette) |
| Palette | getPalette () |
| int | mapRGB (Color color) |
| int | mapRGB (int red, int green, int blue) |
| int | mapRGBA (Color color) |
| int | mapRGBA (int red, int green, int blue, int alpha) |
| int[] | getRGB (int pixel) |
| int[] | getRGBA (int pixel) |
| native byte[] | getPixels () |
| native void | setPixels (byte[] pixels) |
| native void | freeSurface () |
Static Public Member Functions |
| native String | getVideoDriverName () |
| native Surface | loadBMP (String filePath) |
| Surface | loadBMP (File file) |
| native Surface | loadBMP (byte[] bytes, int offset, int length) |
| Surface | loadBMP (byte[] bytes) |
| | same as loadBMP(bytes, 0, bytes.length);
|
| Surface | loadBMP (InputStream inputStream) |
| Surface | createRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) |
Protected Member Functions |
| void | finalize () throws Throwable |
Protected Attributes |
| gnu.gcj.RawData | implementation = null |
| PixelFormat | format = null |
| byte[] | pixelArray = null |
Private Member Functions |
| native void | initWithRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) |