Label an Image with Text?
Derek Bump
webmaster at dreamscapesoftware.com
Fri Dec 10 00:29:36 EST 2004
> 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?
Yes, you have to specify the exact coordinates for the snapshot to work.
> Thanks for the quick response!
No problem, glad to see someone else can't sleep either (unless your on the other side of the world).
Derek Bump
Dreamscape Software
____________________________________________
Compress Images Easily with JPEGCompress
http://www.dreamscapesoftware.com
----- Original Message -----
From: "Rick Harrison" <harrison at all-auctions.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Thursday, December 09, 2004 11:19 PM
Subject: Re: Label an Image with Text?
>
> 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.
>
>
> Rick Harrison
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
More information about the use-livecode
mailing list