Rotated Text?

prothero at earthednet.org prothero at earthednet.org
Wed Mar 26 13:45:11 EDT 2014


Thanks, Klaus. I'll do that.
Bill

prothero at earthednet.org
http://es.earthednet.org

On Mar 26, 2014, at 10:41 AM, Klaus major-k wrote:

> Hi Bill,
> 
> Am 26.03.2014 um 17:58 schrieb prothero at earthednet.org:
> 
>> Scott:
>> I'm not sure how to approach this. Should I use a separate, offscreen window to put the field in, and to get the snapshot?
> 
> you can use a hidden field on the same card, if you like!
> 
>> Also, is it possible to create the image with the background transparent, so I can put the image where I want and see only the text?
> 
> Yes, do something like this:
> ...
> ## tText is the text you want in the field
> set the text of fld "hidden field 4 screenshot" to tText
> 
> ## Now cut off everything from the field that is NOT the text :-)
> set the width of fld "hidden field 4 screenshot" to the formattedwidth of fld "hidden field 4 screenshot"
> set the height of fld "hidden field 4 screenshot" to the formattedheight of fld "hidden field 4 screenshot"
> 
> ## Now ready for snapping:
> ## Hint: Make the field transparent -> opaque OFF & no border
> import snapshot from rect(the rect of fld "hidden field 4 screenshot") of fld "hidden field 4 screenshot"
> 
> ## E tvoila, a nice transparent image with text only
> 
> ## Now "rotate" the text/image
> set the angle of last img to 90
> 
> ## And do whatever you like with -> the last image
> ## :-)
> ...
> 
>> Bill
> 
> Best
> 
> Klaus
> --
> Klaus Major
> http://www.major-k.de
> klaus at major-k.de
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list