Text of an image
Jim Ault
JimAultWins at yahoo.com
Thu Sep 4 13:47:12 EDT 2008
On 9/4/08 9:04 AM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:
>> set the imageData of img 1 to the imageData of img 1
>> This will fit the text of the image to its current locked size.
>> Many bytes saved :-)
>
> I've been experimenting with a similar technique here to make thumbnails
> I can store in a stack, but have had mixed results: sometimes the
> imagedata in the new thumbnail image remains intact, other times it
> appears empty.
>
> The source for these images are files on disk, displayed in an image
> object much smaller. My goal is to get the imageData from the display
> image and create a new image in another stack with that thumbnail - any
> tips for doing that reliably?
Perhaps you could add a test such as
set the clipboarddata to the imageData of img 1
if the length of the clipboarddata < 100 then
-- the clipboardData is not likely enough bytes for an image
--do something else that may solve the empty thumbnail occurrence
end if
Jim Ault
Las Vegas
More information about the use-livecode
mailing list