How to rotate text?

Jan Schenkel janschenkel at yahoo.com
Wed Jun 9 11:07:46 EDT 2004


--- Ian Summerfield <iansummerfield at icmlondon.co.uk>
wrote:
> I need to rotate text through 90 degrees to label a
> chart.  I can't 
> find how.  It's looking like the text will have to
> be an image because 
> they're the only things that can be rotated?  In
> which case, the user 
> needs to specify the text,  can I get the text and
> somehow convert it 
> to an image?
> 

Hi Ian,

You can do that by letting the user type the text into
a field , taking a snapshot and then using that image
for your chart.
--
  put the rect of field "Input" into tFieldRect
  import snapshot from rect tFieldRect
  set the angle of the last image to 90
--

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


More information about the use-livecode mailing list