1 | #ifndef ENGINE_GFX_IMAGE_MANIPULATION_H |
2 | #define ENGINE_GFX_IMAGE_MANIPULATION_H |
3 | |
4 | #include <cstdint> |
5 | |
6 | // These functions assume that the image data is 4 bytes per pixel RGBA |
7 | void DilateImage(uint8_t *pImageBuff, int w, int h); |
8 | void DilateImageSub(uint8_t *pImageBuff, int w, int h, int x, int y, int sw, int sh); |
9 | |
10 | // returned pointer is allocated with malloc |
11 | uint8_t *ResizeImage(const uint8_t *pImageData, int Width, int Height, int NewWidth, int NewHeight, int BPP); |
12 | |
13 | int HighestBit(int OfVar); |
14 | |
15 | #endif // ENGINE_GFX_IMAGE_MANIPULATION_H |
16 | |