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 bitmap

Author
Message
coyote
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location:
Posted: 24th Sep 2004 19:32
hi
i wanna know how to covert string to bitmap image using
memblock command.

ex:

a$="hello" --> memblock --> bitmap image that shows 'hello'

too much isnt good...
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Sep 2004 20:53
You don't need a memblock...

CREATE BITMAP using text height and text length
TEXT the text to the bitmap

done.

Now you can create an image, sprite etc from the bitmap.

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
coyote
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location:
Posted: 24th Sep 2004 21:51
BatVink
thank you.but i have to use memblock command some reason.
now how to covert string to bitmap image using
memblock command.

too much isnt good...
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Sep 2004 23:08
But why use a memblock? That would involve

1. Create Bitmap
2. Add text
3. Make Memblock from bitmap
4. Make bitmap from memblock

At point 2, you've already accomplished it. And there is no other way to get your font into the memblock without writing it on a bitmap first.

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
coyote
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location:
Posted: 24th Sep 2004 23:39
ok , i'll try that way.
thanks

too much isnt good...

Login to post a reply

Server time is: 2024-09-23 00:28:48
Your offset time is: 2024-09-23 00:28:48