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 DBPro Corner / Text to Sprite anyone got code ?

Author
Message
Newbie5UK
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 1st Dec 2004 18:49
Hi,

anyone got some code to covert text to a sprite so I can refresh more easily etc ?

I know you have to use the CREAT BITMAP command but just can't get my head round it.

Help appreciated

thx
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Dec 2004 19:50 Edited at: 1st Dec 2004 19:52
Here's some code that creates 26 images for the alphabet. The image and sprite number are the same



BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Newbie5UK
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 1st Dec 2004 21:47
Thx the code doesn't appear to show anything.. i have DB Enhanced, could that be why i see nothing ?
Newbie5UK
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 1st Dec 2004 22:16
Sorted thx....
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 2nd Dec 2004 01:24
I guess you uncommented the sprite line and put them on the screen? I forgot...my snippet puts them out of the way until you need them.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply

Login to post a reply

Server time is: 2024-11-13 18:44:42
Your offset time is: 2024-11-13 18:44:42