SFML community forums
Help => Graphics => Topic started by: Ankou on September 07, 2008, 06:25:14 pm
-
Hi,
Is it possible to draw on an image and if not, why does Image has a save function?
-
Is it possible to draw on an image
Not yet, but it'll be implemented soon (see "render to image" feature).
why does Image has a save function?
For that :
window.Capture().SaveToFile("screenshot.jpg");
That (next version) :
image.Copy(source, x, y);
...
image.SaveToFile("tileset.png");
Or that :
image.SetPixel(x, y, color);
...
image.SaveToFile("my_drawing.png");