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 / is there a way to rotate text?

Author
Message
T4r4ntul4
14
Years of Service
User Offline
Joined: 1st Jan 2010
Location: close to my pc
Posted: 23rd Feb 2011 18:51
is there a way to rotate text? to vertical, or diagonal?

i searched the forums but couldnt find any answer. or maybe theres some plugin where you could rotate a text?
Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 23rd Feb 2011 22:59 Edited at: 24th Feb 2011 00:54
For 3D, you can use the Direct3D (D3D) plugin to make 3D text, then rotating the object.

For 2D, the easiest way I can think of, is getting the image of the text. Then after converting it to a sprite, you would rotate the sprite.

However, if you are displaying text a lot, the "get image" command will take up some system resources. Here is some example code.

[EDIT] Its now fixed.


Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 23rd Feb 2011 23:26
Quote: "Note: The transparency flag does not seem to be working, so I am going to ask about it. But if it did work, you will not get the overlap with the black background over the text."


Use 1 instead of 2 at the end of GET IMAGE and it should be transparent.

Admiral MH
13
Years of Service
User Offline
Joined: 10th Feb 2011
Location: TX, USA
Posted: 24th Feb 2011 00:36
Quote: "Use 1 instead of 2 at the end of GET IMAGE and it should be transparent."


Ah ok, did not read that in the help file. Thank you.
T4r4ntul4
14
Years of Service
User Offline
Joined: 1st Jan 2010
Location: close to my pc
Posted: 24th Feb 2011 17:38
sorry for the late response, but your code will do, thank you =)
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 24th Feb 2011 21:47
Here`s another way...



I'm not a grumpy grandpa
miso
14
Years of Service
User Offline
Joined: 16th Jun 2010
Location: Budapest, Hungary, 127.0.0.1
Posted: 4th Mar 2011 20:28
I had to make some additions.



No place like 127.0.0.1 .
chafari
Valued Member
18
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 6th Mar 2011 22:26
@miso

That´s great !!...I`ll keep it .

cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2024-11-23 02:42:07
Your offset time is: 2024-11-23 02:42:07