Page 1 of 1

Printing/Exporting from chartsEngine

Posted: Tue Apr 20, 2010 2:52 am
by drOrganized
Is there support for printing a chart without the card background?

How about exporting the graphic as an image?

Thanks,
M~

Re: Printing/Exporting from chartsEngine

Posted: Tue Apr 20, 2010 11:06 am
by malte
Hi,

you can use export snapshot from rect to export the chart to an image.

export snapshot from rect (the rect of grp "yourChart" of grp "yourChart" to file "path/to/file" as PNG

hth,

Malte

Re: Printing/Exporting from chartsEngine

Posted: Tue Apr 20, 2010 1:02 pm
by drOrganized
Many thanks Malte....!

Re: Printing/Exporting from chartsEngine

Posted: Tue Apr 20, 2010 1:30 pm
by FourthWorld
With Rev v2.7 the export snapshot command was enhanced to allow you to export an object directly without having to specify its rect, with the dual benefit that the card the object resides on need not be open and if exporting a group the empty area between controls is rendered as transparent - from the Rev Dictionary entry for "export snapshot":
Tip: If the image has an alpha channel, the export snapshot...as PNG form creates a 32-bit PNG file.
If taking a snapshot of an object, the rectangle's coordinates are relative to the top left corner of the card containing the object. The object is rendered into an image as if no other objects existed around it, the snapshot is taken without applying the object's blendlevel or ink. You can take a snapshot of an object regardless of its visibility or open status - in particular, snapshots can be taken of objects that are not on the current card or in stacks that are not open.

Re: Printing/Exporting from chartsEngine

Posted: Wed Apr 21, 2010 2:54 am
by drOrganized
Thank you for helping me with this command...!