|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use SDLPixelFormat | |
|---|---|
| sdljava.video | Provides all the functions which are defined in the SDL_video.h header. |
| Uses of SDLPixelFormat in sdljava.video |
|---|
| Methods in sdljava.video that return SDLPixelFormat | |
|---|---|
SDLPixelFormat |
SDLSurface.getFormat()
|
SDLPixelFormat |
SDLVideoInfo.getFormat()
|
| Methods in sdljava.video with parameters of type SDLPixelFormat | |
|---|---|
SDLSurface |
SDLSurface.convertSurface(SDLPixelFormat fmt,
long flags)
Creates a new surface of the specified format, and then copies and maps the given surface to it so the blit of the converted surface will be as fast as possible. |
static SDLColor |
SDLVideo.getRGB(int pixel,
SDLPixelFormat fmt)
Maps a pixel value into the RGB components for a given pixel format This function uses the entire 8-bit [0..255] range when converting color components from pixel formats with less than 8-bits per RGB component (e.g., a completely white pixel in 16-bit RGB565 format would return [0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8]). |
static SDLColor |
SDLVideo.getRGBA(int pixel,
SDLPixelFormat fmt)
Maps a pixel value into the RGBA components for a given pixel format This function uses the entire 8-bit [0..255] range when converting color components from pixel formats with less than 8-bits per RGB component (e.g., a completely white pixel in 16-bit RGB565 format would return [0xff, 0xff, 0xff] not [0xf8, 0xfc, 0xf8]). |
static long |
SDLVideo.mapRGB(SDLPixelFormat format,
int r,
int g,
int b)
Maps an RGB triple to an opaque pixel value for a given pixel format If the format has a palette (8-bit) the index of the closest matching color in the palette will be returned. |
static long |
SDLVideo.mapRGBA(SDLPixelFormat format,
int r,
int g,
int b,
int a)
Maps an RGBA quadruple to a pixel value for a given pixel format If the format has a palette (8-bit) the index of the closest matching color in the palette will be returned. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||