Rotated Text?

Klaus major-k klaus at major-k.de
Wed Mar 26 13:41:43 EDT 2014


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





More information about the use-livecode mailing list