|
Public Member Functions |
native int | getFlags () |
| gets video flags.
|
native int | getW () |
| gets width.
|
native int | getH () |
| gets height.
|
native int | getPitch () |
| gets byte per line.
|
native void | saveBMP (String filePath) |
| Save an SDL_Surface as a Windows BMP file.
|
void | saveBMP (File file) |
| Save an SDL_Surface as a Windows BMP file.
|
native int | blitSurface (Surface surface, int sx, int sy, int sw, int sh, int dx, int dy) |
| This performs a fast blit from the surface to the reciever surface.
|
native int | blitSurface (Surface surface, int dx, int dy) |
| This performs a fast blit from the surface to the reciever surface.
|
native int | blitSurface (Surface surface) |
| This performs a fast blit from the source surface to the destination surface.
|
int | repeatSurface (Surface surface) |
| Repeat surface blitting.
|
native void | fillRect (int sx, int sy, int sw, int sh, int color) |
| This function performs a fast fill of the given rectangle with some color.
|
void | fillRect (Rect rect, int color) |
| This function performs a fast fill of the given rectangle with some color.
|
native void | fillRect (int color) |
| This function performs a fast fill of the entire suface with some color.
|
native void | setColorKey (int flags, int colorkey) |
| Sets the color key (transparent pixel) in a blittable surface and RLE acceleration.
|
native void | setColorKey (int flags) |
| Sets the color key (transparent pixel) in a blittable surface and RLE acceleration.
|
void | setColorKey () |
| Sets the color key (transparent pixel) in a blittable surface and RLE acceleration.
|
native boolean | setClipRect (int x, int y, int w, int h) |
| Sets the clipping rectangle for a surface.
|
native boolean | setClipRect () |
| Sets the clipping rectangle to the full size of the surface.
|
native int[] | getClipRect () |
| Gets the clipping rectangle for a surface.
|
native int | setAlpha (int flags, int alpha) |
| Adjust the alpha properties of a surface.
|
native void | displayFormat () |
| Convert a surface to the display format.
|
native void | displayFormatAlpha () |
| Convert a surface to the display format.
|
native void | convertSurface (PixelFormat format, int flags) |
| Converts a surface to the same format as another surface.
|
native Surface | cloneSurface () |
| Clone surface.
|
native PixelFormat | getPixelFormat () |
| Get pixel format.
|
native void | setPalette (Color[] palette) |
| Sets the colors in the palette of an 8-bit surface.
|
void | setPalette (Palette palette) |
| Sets the colors in the palette of an 8-bit surface.
|
void | setPalette (Palette palette, int index) |
| Sets the colors in the palette of an 8-bit surface.
|
native void | setPalette (Palette palette, int index, int firstcolor, int ncolors) |
| Sets the colors in the palette of an 8-bit surface.
|
Palette | getPalette () |
| Gets palette.
|
int | mapRGB (Color color) |
| Map a RGB color value to a pixel format.
|
int | mapRGB (int red, int green, int blue) |
| Map a RGB color value to a pixel format.
|
int | mapRGBA (Color color) |
| Map a RGBA color value to a pixel format.
|
int | mapRGBA (int red, int green, int blue, int alpha) |
| Map a RGBA color value to a pixel format.
|
int[] | getRGB (int pixel) |
| Get RGB values from a pixel in the specified pixel format.
|
int[] | getRGBA (int pixel) |
| Get RGBA values from a pixel in the specified pixel format.
|
native byte[] | getPixels () |
| Gets pixels.
|
native void | setPixels (byte[] pixels) |
| Sets pixels.
|
native void | freeSurface () |
| Free surface.
|
Static Public Member Functions |
static native String | getVideoDriverName () |
| Obtain the name of the video driver.
|
static native Surface | loadBMP (String filePath) |
| Load a Windows BMP file into an SDL_Surface.
|
static Surface | loadBMP (File file) |
| Load a Windows BMP file into an SDL_Surface.
|
static native Surface | loadBMP (byte[] bytes, int offset, int length) |
| Load a Windows BMP from byte array into an SDL_Surface.
|
static Surface | loadBMP (byte[] bytes) |
| Load a Windows BMP from byte array into an SDL_Surface.
|
static Surface | loadBMP (InputStream inputStream) |
| Load a Windows BMP from inputStream array into an SDL_Surface.
|
static Surface | createRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) |
| Create an empty SDL_Surface.
|
static Surface | createRGBSurfaceFrom (byte[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
static Surface | createRGBSurfaceFrom (short[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
static Surface | createRGBSurfaceFrom (int[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
Protected Member Functions |
| Surface () |
void | finalize () throws Throwable |
Protected Attributes |
gnu.gcj.RawData | implementation = null |
PixelFormat | format = null |
byte[] | pixelArray = null |
Private Member Functions |
native void | initRGBSurface (int flags, int width, int height, int bpp, int rmask, int gmask, int bmask, int amask) |
native void | initRGBSurfaceFrom (byte[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
native void | initRGBSurfaceFrom (short[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
native void | initRGBSurfaceFrom (int[] pixels, int width, int height, int bpp, int pitch, int rmask, int gmask, int bmask, int amask) |
Private Attributes |
Object | sourceArray = null |