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 Professional Discussion / [ImageKit] Clear an image before drawing to it?

Author
Message
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Jul 2012 21:18
I'm trying to draw a few objects to an image, add an effect to it, then paste it over top the screen. Basically I only want the effect to affect certain objects, and not everything the player sees. But as those objects move and I repaste them to the image, it leaves trails behind because the image doesn't get clear. Overall image is a transparent background so that's why I can't just overwrite it with something else. Is there a simple and effective way to just clear an image?

"You're not going crazy. You're going sane in a crazy world!" ~Tick
Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 20th Jul 2012 21:26


[b]
Phaelax
DBPro Master
23
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 22nd Jul 2012 04:39
Ooooo, I didn't realize CLS used alpha channel.

"You're not going crazy. You're going sane in a crazy world!" ~Tick

Login to post a reply

Server time is: 2026-07-07 18:21:20
Your offset time is: 2026-07-07 18:21:20