Mark,
That was it. I actually just figured that out earlier before I got frustrated
with another problem. So when I lost the code i could not remember what I did.
I am using the rect of that item to define an area of the card to capture and
not the actual graphic itself.
Is there any savings between using the two line method or a one line like this:
export snapshot from rect (the rect of grc "PreviewRect" of group
"PreviewGroup" of this card) of this card to tPreviewImage as PNG
???
-- Tom McGrath III
http://lazyriver.on-rev.com
[email protected]
On Apr 8, 2011, at 1:25 PM, Mark Schonewille wrote:
> Hi Tom,
>
> Whenever you mention you get an error, you should post that error.
>
> You define a rect, but you don't tell LiveCode what the rect belongs to.
>
> Your approach:
> put the rect of graphic "PreviewRect" of group "PreviewGroup" of this card
> into myRect
> export snapshot from rect myRect to tPreviewImage as PNG
>
> This should be:
> export snapshot from rect myRect of this cd to tPreviewImage as PNG
>
> I'm not sure that you actually need to define this rect separately. Can't you
> export it directly?
>
> export grc "PreviewRect" of grp "PreviewGroup" of this cd to tPreviewImage as
> PNG
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> New: Download the Installer Maker Plugin 1.6 for LiveCode here
> http://qery.us/ce
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode