Label an Image with Text?
Rick Harrison
harrison at all-auctions.com
Fri Dec 10 00:19:08 EST 2004
On Dec 10, 2004, at 12:00 AM, Derek Bump wrote:
>
> You mean like taking group of text and rendering it into an image?
> Well, there is no native way to do this, but what you can do is
> this...
>
> 1. Put the text you want into a fld.
> 2. Take a snapshot of the fld.
> 3. figure out where in the imageData of the "main" image that you want
> to insert the imageData from the snapshot.
>
> That method will take a VERY long time as you have to parse the main
> image pixel by pixel. The other method is this, but if the image is
> larger than the stack then it will get cut off.
>
> 1. Put the text you want into a fld.
> 2. Place the fld where you want it to appear over the image.
> 3. Take a snapshot of the image.
>
>
Derek,
The latter method is probably the easiest.
I tried taking a snapshot after getting the rectangle
of the image, but it ended up getting other parts of
the stack window too. Is this a problem of relative
vs. absolute coordinates?
Thanks for the quick response!
Rick Harrison
More information about the use-livecode
mailing list