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.

DarkBASIC Discussion / Image and drawing advice

Author
Message
nojbox87
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: England
Posted: 7th Jan 2006 00:21 Edited at: 7th Jan 2006 00:23
Hi im a making a program which basically u can draw boxs onto a jpg image of the users choice. At the moment the mouse coordinates are taken and stored in a array defining where the box is to be drawn. However to draw these on in real time the screen needs constant 'refreshing'. I started with CLS and putting the jpg back then drawing all the boxs, however this make the screen flicker to much. Is there any way just to delete all the boxs and redraw them without redrawing the jpg?
i dunno if that made sense but thx in advance

I am a Christian and I know that God loves me. That is what makes my life so great!
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 7th Jan 2006 06:39
It would help to see code.

Post it in code snips:
[ code ]
Your code here.
[ /code ]

When you take out the spaces between the brackets we see this:



Are you using "sync on" and "sync" to update the screen?


Login to post a reply

Server time is: 2025-05-23 00:35:37
Your offset time is: 2025-05-23 00:35:37