Scaling Field Problems

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
CenturyMan1979
Posts: 86
Joined: Tue May 15, 2012 5:56 pm

Scaling Field Problems

Post by CenturyMan1979 » Wed May 15, 2013 6:05 pm

Hey All,

In my application I am scaling a field and the textSize of that field. Problem with this is textSize will only take integers so as it scales the text jumps around and has inconsistent layout.

I was thinking that maybe I can create an image of the field at 100% and scale the image which will look smooth and have a consistent layout. Is there any way to extract an image of a field object with transparency?

Klaus
Posts: 14213
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scaling Field Problems

Post by Klaus » Wed May 15, 2013 6:19 pm

Hi CenturyMan1979,

yep, do this:
1. Create your field
2. NO border, NOT opaque, NO showfocusborder
3. Enter your text
4. Import snapshot:
...
import snapshot from rect (the rect of fld 1) of fld 1
...
Et voila, a nice transparent image of your text :-)
You may want to set the "resizequality" of the image(s) to BEST after that!


Best

Klaus

Post Reply