|
| Image (const ::Font &font, const std::string_view text, float fontSize, float spacing, ::Color tint={255, 255, 255, 255}) |
|
| Image (const ::Image &image) |
|
| Image (const ::Texture2D &texture) |
| Load an image from the given file. More...
|
|
| Image (const Image &other) |
|
| Image (const std::string_view fileName) |
| Load an image from the given file. More...
|
|
| Image (const std::string_view fileName, int *frames) |
| Load an animation image from the given file. More...
|
|
| Image (const std::string_view fileName, int width, int height, int format, int headerSize=0) |
| Load a raw image from the given file, with the provided width, height, and formats. More...
|
|
| Image (const std::string_view fileName, std::span< int > frames) |
| Load an animation image from the given file. More...
|
|
| Image (const std::string_view fileType, const unsigned char *fileData, int dataSize) |
| Load an image from the given file. More...
|
|
| Image (const std::string_view text, int fontSize, ::Color color={255, 255, 255, 255}) |
|
| Image (Image &&other) |
|
| Image (int width, int height, ::Color color={255, 255, 255, 255}) |
|
| Image (void *data=nullptr, int width=0, int height=0, int mipmaps=1, int format=PIXELFORMAT_UNCOMPRESSED_R8G8B8A8) |
|
Image & | AlphaClear (::Color color, float threshold) |
| Clear alpha channel to desired color. More...
|
|
Image & | AlphaCrop (float threshold) |
| Crop image depending on alpha value. More...
|
|
Image & | AlphaMask (const ::Image &alphaMask) |
| Apply alpha mask to image. More...
|
|
Image & | AlphaPremultiply () |
| Premultiply alpha channel. More...
|
|
Image & | ClearBackground (::Color color={0, 0, 0, 255}) |
| Clear image background with given color. More...
|
|
Image & | ColorBrightness (int brightness) |
| Modify image color: brightness. More...
|
|
Image & | ColorContrast (float contrast) |
| Modify image color: contrast. More...
|
|
Image & | ColorGrayscale () |
| Modify image color: grayscale. More...
|
|
Image & | ColorInvert () |
| Modify image color: invert. More...
|
|
Image & | ColorReplace (::Color color, ::Color replace) |
| Modify image color: replace color. More...
|
|
Image & | ColorTint (::Color color={255, 255, 255, 255}) |
| Modify image color: tint. More...
|
|
::Image | Copy () const |
| Create an image duplicate (useful for transformations) More...
|
|
Image & | Crop (::Rectangle crop) |
| Crop an image to area defined by a rectangle. More...
|
|
Image & | Crop (::Vector2 size) |
| Crop an image to a new given width and height based on a vector. More...
|
|
Image & | Crop (int newWidth, int newHeight) |
| Crop an image to a new given width and height. More...
|
|
Image & | Crop (int offsetX, int offsetY, int newWidth, int newHeight) |
| Crop an image to area defined by a rectangle. More...
|
|
Image & | Dither (int rBpp, int gBpp, int bBpp, int aBpp) |
| Dither image data to 16bpp or lower (Floyd-Steinberg dithering) More...
|
|
void | Draw (const ::Image &src, ::Rectangle srcRec, ::Rectangle dstRec, ::Color tint={255, 255, 255, 255}) |
|
void | DrawCircle (::Vector2 center, int radius, ::Color color={255, 255, 255, 255}) |
|
void | DrawCircle (int centerX, int centerY, int radius, ::Color color={255, 255, 255, 255}) |
|
void | DrawLine (::Vector2 start, ::Vector2 end, ::Color color={255, 255, 255, 255}) |
|
void | DrawLine (int startPosX, int startPosY, int endPosX, int endPosY, ::Color color={255, 255, 255, 255}) |
|
void | DrawPixel (::Vector2 position, ::Color color={255, 255, 255, 255}) |
|
void | DrawPixel (int posX, int posY, ::Color color={255, 255, 255, 255}) |
| Draw pixel within an image. More...
|
|
void | DrawRectangle (::Rectangle rec, ::Color color={255, 255, 255, 255}) |
|
void | DrawRectangle (int posX, int posY, int width, int height, ::Color color={255, 255, 255, 255}) |
|
void | DrawRectangle (Vector2 position, Vector2 size, ::Color color={255, 255, 255, 255}) |
|
void | DrawRectangleLines (::Rectangle rec, int thick=1, ::Color color={255, 255, 255, 255}) |
|
void | DrawText (const ::Font &font, const char *text, ::Vector2 position, float fontSize, float spacing, ::Color tint={255, 255, 255, 255}) |
|
void | DrawText (const ::Font &font, const std::string_view text, ::Vector2 position, float fontSize, float spacing, ::Color tint={255, 255, 255, 255}) |
|
void | DrawText (const char *text, ::Vector2 position, int fontSize, ::Color color={255, 255, 255, 255}) |
|
void | DrawText (const char *text, int x, int y, int fontSize, ::Color color={255, 255, 255, 255}) |
|
void | DrawText (const std::string_view text, ::Vector2 position, int fontSize, ::Color color={255, 255, 255, 255}) |
|
void | DrawText (const std::string_view text, int x, int y, int fontSize, ::Color color={255, 255, 255, 255}) |
|
void | Export (const std::string_view fileName) const |
| Export image data to file, returns true on success. More...
|
|
void | ExportAsCode (const std::string_view fileName) const |
| Export image as code file defining an array of bytes, returns true on success. More...
|
|
unsigned char * | ExportToMemory (const char *fileType, int *fileSize) |
| Export image to memory buffer. More...
|
|
unsigned char * | ExportToMemory (const std::string_view fileType, std::span< int > fileSize) |
|
Image & | FlipHorizontal () |
| Flip image horizontally. More...
|
|
Image & | FlipVertical () |
| Flip image vertically. More...
|
|
Image & | Format (int newFormat) |
| Convert image data to desired format. More...
|
|
::Image | FromImage (::Rectangle rec) const |
| Create an image from another image piece. More...
|
|
Rectangle | GetAlphaBorder (float threshold) const |
| Get image alpha border rectangle. More...
|
|
raylib::Color | GetColor (::Vector2 position) const |
| Get image pixel color at vector position. More...
|
|
raylib::Color | GetColor (int x=0, int y=0) const |
| Get image pixel color at (x, y) position. More...
|
|
void * | GetData () const |
| Retrieves the data value for the object. More...
|
|
int | GetFormat () const |
| Retrieves the format value for the object. More...
|
|
int | GetHeight () const |
| Retrieves the height value for the object. More...
|
|
int | GetMipmaps () const |
| Retrieves the mipmaps value for the object. More...
|
|
int | GetPixelDataSize () const |
| Returns the pixel data size based on the current image. More...
|
|
::Vector2 | GetSize () const |
| Retrieve the width and height of the image. More...
|
|
int | GetWidth () const |
| Retrieves the width value for the object. More...
|
|
bool | IsReady () const |
| Retrieve whether or not the Image has been loaded. More...
|
|
void | Load (const ::Texture2D &texture) |
| Load an image from the given file. More...
|
|
void | Load (const std::string_view fileName) |
| Load image from file into CPU memory (RAM) More...
|
|
void | Load (const std::string_view fileName, int *frames) |
| Load image sequence from file (frames appended to image.data). More...
|
|
void | Load (const std::string_view fileName, int width, int height, int format, int headerSize) |
| Load image from RAW file data. More...
|
|
void | Load (const std::string_view fileName, std::span< int > frames) |
| Load image sequence from file (frames appended to image.data). More...
|
|
void | Load (const std::string_view fileType, const std::span< unsigned char > fileData) |
| Load image from memory buffer, fileType refers to extension: i.e. More...
|
|
void | Load (const std::string_view fileType, const unsigned char *fileData, int dataSize) |
| Load image from memory buffer, fileType refers to extension: i.e. More...
|
|
::Color * | LoadColors () const |
| Load color data from image as a Color array (RGBA - 32bit) More...
|
|
::Color * | LoadPalette (int maxPaletteSize, int *colorsCount) const |
| Load colors palette from image as a Color array (RGBA - 32bit) More...
|
|
::Texture2D | LoadTexture () const |
| Load texture from image data. More...
|
|
Image & | Mipmaps () |
| Generate all mipmap levels for a provided image. More...
|
|
| operator::Texture2D () |
| Loads a texture from the image data. More...
|
|
Image & | operator= (const ::Image &image) |
|
Image & | operator= (const Image &other) |
|
Image & | operator= (Image &&other) noexcept |
|
Image & | Resize (int newWidth, int newHeight) |
| Resize and image to new size. More...
|
|
Image & | ResizeCanvas (int newWidth, int newHeight, int offsetX=0, int offsetY=0, ::Color color={255, 255, 255, 255}) |
| Resize canvas and fill with color. More...
|
|
Image & | ResizeNN (int newWidth, int newHeight) |
| Resize and image to new size using Nearest-Neighbor scaling algorithm. More...
|
|
Image & | Rotate (Degree degrees) |
| Rotate image by input angle in degrees (-359 to 359) More...
|
|
Image & | RotateCCW () |
| Rotate image counter-clockwise 90deg. More...
|
|
Image & | RotateCW () |
| Rotate image clockwise 90deg. More...
|
|
void | SetHeight (int height, int offsetX=0, int offsetY=0, ::Color fill={255, 255, 255, 255}) |
| Set the height of the image canvas. More...
|
|
void | SetWidth (int width, int offsetX=0, int offsetY=0, ::Color fill={255, 255, 255, 255}) |
| Set the width of the image canvas. More...
|
|
Image & | ToPOT (::Color fillColor) |
| Convert image to POT (power-of-two) More...
|
|
void | Unload () |
| Unload image from CPU memory (RAM) More...
|
|
void | UnloadColors (::Color *colors) const |
| Unload color data loaded with LoadImageColors() More...
|
|
void | UnloadPalette (::Color *colors) const |
| Unload colors palette loaded with LoadImagePalette() More...
|
|