Make image controls from Rev Graphics?
chipp at chipp.com
Tue Oct 18 16:04:31 CDT 2005
Yep, that's the ticket. Just:
put the windowID of this stack into tWinID
put the rect of graphic "myArrow" into tRect
import snapshot from rect tRect of window tWinID
should do the trick. It will create a bitmap of the graphic at the
center of your card.
Todd Geist wrote:
> On 10/18/05 1:13 PM, "Chipp Walters" <chipp at chipp.com> wrote:
>>I'm not exactly sure what it is you're trying to do. Perhaps you can
>>explain a bit more what it is you want to accomplish. Using 'import
>>snapshot' should be able to create an image from any rect on the card.
> I have created some Arrows and Triangles etc, using Rev's drawing tools.
> They are graphic controls. I would like to add them as Icons to buttons. SO
> I need to turn them into "images" right?
> So can I just 'import snapshot' from the rectangle of the graphic?
More information about the use-livecode