{"identifier":36906,"topic":"Commands","name":"export paint","text":"<code>export paint to file <i>fileName<\/i><\/code> <br><br>\n\n The<code> export paint <\/code>command saves a Paint image of the current card to the specified file.<code> Export paint <\/code>works only when one of the Paint tools is chosen. <br><br>\n\n This command has the same effect as the Export Paint menu item that appears in the File menu (when a Paint tool is chosen), except that it avoids the dialog box that prompts the user for a file name. <br>\n<br>\nIf<code> export paint <\/code>succeeds, HyperCard sets the function<code> the result <\/code>to<code> empty<\/code>; if the command fails (if, for example, you use<code> export paint <\/code>when the Browse tool is chosen), HyperCard sets<code> the result <\/code>to<code> \"Couldn't export paint.\"<\/code> <br>\n","related":{"40224":"import paint"},"examples":"export paint to file \"Screen Dump 0\"\n\nask file \"Export paint to file:\"\nif it is not empty then export paint to file it","demo":"","debug":{"9":["export paint to file"],"10":["If export paint succ"]}}