Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / My paint program

Author
Message
Hubert BAYRE
7
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 7th Dec 2017 16:48

Hello.
i'm tring to code a basic paint program.
i put a sprite as background. On the sprite image : a big white zone to draw, on the right side some 'buttons' (to choose the point size and the colour).
Next i use the function DrawEllipse ... but ... my coloured point disapear immediatly !

1) How to keep the 'render display and drawing on it !
2) How to capture only the draw zone and save the image as a png file.
Many thanks.


blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 7th Dec 2017 19:44
The "Draw" commands only work for one from.
You will either have to use RendertoImage() to preserve them or Draw them for every frame
Hubert BAYRE
7
Years of Service
User Offline
Joined: 21st Oct 2017
Location: France
Posted: 8th Dec 2017 17:22
Many thanks !

Login to post a reply

Server time is: 2024-11-24 05:10:43
Your offset time is: 2024-11-24 05:10:43