But it's got a bug-- and I can't seem to figure out why.
This stack takes a text field and captures it into a transparent image.
Then it skins that transparent image, so it appears as floating text.
Here's what the stack looks like: Notice I have this on a gray background.
When the Create Image button is pressed,
the text turns into a transparent image and is skinned: See. It's not a clear graphic.
There are remnants. Not from the gray background,
but from the original black font.
I've got this set up with a timer, so after 5 seconds,
the skinning is cancelled and the stack reappears.
Changing the textHeight seems to affect the severity of the remnants.
But I don't know why. It shouldn't.
Here's the code:
Code: Select all
on mouseUp
set visible of fld "source.line" to false
put rect of fld "source.line" into tRect
create img "reminder"
export snapshot from rect tRect of fld "source.line" to img "reminder" as gif
select empty
set windowshape of this stack to id of image "reminder"
call do.timer
end mouseUp