274 #endif // SFML_IMAGE_H 
#define CSFML_GRAPHICS_API
CSFML_GRAPHICS_API sfImage * sfImage_createFromPixels(unsigned int width, unsigned int height, const sfUint8 *pixels)
Create an image from an array of pixels. 
CSFML_GRAPHICS_API void sfImage_flipVertically(sfImage *image)
Flip an image vertically (top <-> bottom) 
CSFML_GRAPHICS_API sfImage * sfImage_createFromMemory(const void *data, size_t size)
Create an image from a file in memory. 
CSFML_GRAPHICS_API void sfImage_copyImage(sfImage *image, const sfImage *source, unsigned int destX, unsigned int destY, sfIntRect sourceRect, sfBool applyAlpha)
Copy pixels from an image onto another. 
CSFML_GRAPHICS_API void sfImage_createMaskFromColor(sfImage *image, sfColor color, sfUint8 alpha)
Create a transparency mask from a specified color-key. 
CSFML_GRAPHICS_API sfColor sfImage_getPixel(const sfImage *image, unsigned int x, unsigned int y)
Get the color of a pixel in an image. 
CSFML_GRAPHICS_API sfImage * sfImage_createFromFile(const char *filename)
Create an image from a file on disk. 
CSFML_GRAPHICS_API sfVector2u sfImage_getSize(const sfImage *image)
Return the size of an image. 
CSFML_GRAPHICS_API sfImage * sfImage_createFromStream(sfInputStream *stream)
Create an image from a custom stream. 
2-component vector of unsigned integers 
Utility class for manpulating RGBA colors. 
CSFML_GRAPHICS_API void sfImage_flipHorizontally(sfImage *image)
Flip an image horizontally (left <-> right) 
CSFML_GRAPHICS_API const sfUint8 * sfImage_getPixelsPtr(const sfImage *image)
Get a read-only pointer to the array of pixels of an image. 
CSFML_GRAPHICS_API sfBool sfImage_saveToFile(const sfImage *image, const char *filename)
Save an image to a file on disk. 
CSFML_GRAPHICS_API sfImage * sfImage_createFromColor(unsigned int width, unsigned int height, sfColor color)
Create an image and fill it with a unique color. 
CSFML_GRAPHICS_API sfImage * sfImage_create(unsigned int width, unsigned int height)
Create an image. 
CSFML_GRAPHICS_API void sfImage_setPixel(sfImage *image, unsigned int x, unsigned int y, sfColor color)
Change the color of a pixel in an image. 
CSFML_GRAPHICS_API sfImage * sfImage_copy(const sfImage *image)
Copy an existing image. 
CSFML_GRAPHICS_API void sfImage_destroy(sfImage *image)
Destroy an existing image.