|
Etterna 0.75.1
|
Utility functions for the RageSurfaces. More...
Enumerations | |
| enum | OpenResult { OPEN_OK , OPEN_UNKNOWN_FILE_FORMAT = 1 , OPEN_FATAL_ERROR = 2 } |
| enum | { TRAIT_NO_TRANSPARENCY = 0x0001 } |
| enum | { TRAIT_BOOL_TRANSPARENCY = 0x0002 } |
Functions | |
| RageSurface * | LoadBase64 (const std::string &base64, std::string &error) |
| RageSurface * | LoadFile (const std::string &sPath, std::string &error, bool bHeaderOnly=false) |
| bool | SaveBMP (RageSurface *surface, RageFile &f) |
| bool | SaveJPEG (RageSurface *surface, RageFile &f, bool bHighQual=true) |
| bool | SavePNG (RageSurface *pImg, RageFile &f, std::string &sError) |
| auto | decodepixel (const uint8_t *p, int bpp) -> uint32_t |
| void | encodepixel (uint8_t *p, int bpp, uint32_t pixel) |
| void | GetRawRGBAV (uint32_t pixel, const RageSurfaceFormat &fmt, uint8_t *v) |
| void | GetRawRGBAV (const uint8_t *p, const RageSurfaceFormat &fmt, uint8_t *v) |
| void | GetRGBAV (uint32_t pixel, const RageSurface *src, uint8_t *v) |
| void | GetRGBAV (const uint8_t *p, const RageSurface *src, uint8_t *v) |
| auto | SetRawRGBAV (const RageSurfaceFormat &fmt, const uint8_t *v) -> uint32_t |
| void | SetRawRGBAV (uint8_t *p, const RageSurface *src, const uint8_t *v) |
| auto | SetRGBAV (const RageSurfaceFormat &fmt, const uint8_t *v) -> uint32_t |
| void | SetRGBAV (uint8_t *p, const RageSurface *src, const uint8_t *v) |
| void | GetBitsPerChannel (const RageSurfaceFormat &fmt, uint32_t bits[4]) |
| void | CopySurface (const RageSurface *src, RageSurface *dest) |
| auto | ConvertSurface (const RageSurface *src, RageSurface *&dst, int width, int height, int bpp, uint32_t R, uint32_t G, uint32_t B, uint32_t A) -> bool |
| void | ConvertSurface (RageSurface *&image, int width, int height, int bpp, uint32_t R, uint32_t G, uint32_t B, uint32_t A) |
| const RageColor | GetAverageRGB (const RageSurface *img, unsigned pixelIncrement=1) |
| void | FixHiddenAlpha (RageSurface *img) |
| auto | FindSurfaceTraits (const RageSurface *img) -> int |
| void | BlitTransform (const RageSurface *src, RageSurface *dst, const float fCoords[8]) |
| void | Blit (const RageSurface *src, RageSurface *dst, int width=-1, int height=-1) |
| void | CorrectBorderPixels (RageSurface *img, int width, int height) |
| auto | SaveSurface (const RageSurface *img, const std::string &file) -> bool |
| auto | LoadSurface (const std::string &file) -> RageSurface * |
| auto | PalettizeToGrayscale (const RageSurface *src_surf, int GrayBits, int AlphaBits) -> RageSurface * |
| auto | MakeDummySurface (int height, int width) -> RageSurface * |
| void | ApplyHotPinkColorKey (RageSurface *&img) |
| void | FlipVertically (RageSurface *img) |
| void | OrderedDither (const RageSurface *src, RageSurface *dst) |
| void | ErrorDiffusionDither (const RageSurface *src, RageSurface *dst) |
| void | Palettize (RageSurface *&pImg, int iColors=256, bool bDither=true) |
| void | Zoom (RageSurface *&src, int width, int height) |
Utility functions for the RageSurfaces.