31 #include <SFML/Graphics/Export.h>
32 #include <SFML/Graphics/Color.h>
33 #include <SFML/Graphics/Rect.h>
34 #include <SFML/Graphics/Types.h>
35 #include <SFML/System/InputStream.h>
36 #include <SFML/System/Vector2.h>
51 CSFML_GRAPHICS_API sfImage* sfImage_create(
unsigned int width,
unsigned int height);
63 CSFML_GRAPHICS_API sfImage* sfImage_createFromColor(
unsigned int width,
unsigned int height,
sfColor color);
80 CSFML_GRAPHICS_API sfImage* sfImage_createFromPixels(
unsigned int width,
unsigned int height,
const sfUint8* pixels);
95 CSFML_GRAPHICS_API sfImage* sfImage_createFromFile(
const char* filename);
111 CSFML_GRAPHICS_API sfImage* sfImage_createFromMemory(
const void* data,
size_t size);
126 CSFML_GRAPHICS_API sfImage* sfImage_createFromStream(
sfInputStream* stream);
136 CSFML_GRAPHICS_API sfImage* sfImage_copy(
const sfImage* image);
144 CSFML_GRAPHICS_API
void sfImage_destroy(sfImage* image);
160 CSFML_GRAPHICS_API sfBool sfImage_saveToFile(
const sfImage* image,
const char* filename);
170 CSFML_GRAPHICS_API
sfVector2u sfImage_getSize(
const sfImage* image);
184 CSFML_GRAPHICS_API
void sfImage_createMaskFromColor(sfImage* image,
sfColor color, sfUint8 alpha);
207 CSFML_GRAPHICS_API
void sfImage_copyImage(sfImage* image,
const sfImage* source,
unsigned int destX,
unsigned int destY,
sfIntRect sourceRect, sfBool applyAlpha);
222 CSFML_GRAPHICS_API
void sfImage_setPixel(sfImage* image,
unsigned int x,
unsigned int y,
sfColor color);
238 CSFML_GRAPHICS_API
sfColor sfImage_getPixel(
const sfImage* image,
unsigned int x,
unsigned int y);
255 CSFML_GRAPHICS_API
const sfUint8* sfImage_getPixelsPtr(
const sfImage* image);
263 CSFML_GRAPHICS_API
void sfImage_flipHorizontally(sfImage* image);
271 CSFML_GRAPHICS_API
void sfImage_flipVertically(sfImage* image);
274 #endif // SFML_IMAGE_H