Top | Previous | Next |
system.print.printToImage |
Description This function prints the given component (such as a graph, container, entire window, etc) to an image file, and prompts the user to save the file to their hard drive. Syntax system.print.printToImage(component) Parameters Component component - The component to render. Returns nothing Scope Client system.print.printToImage(component [, filename]) Parameters Component component - The component to render. String filename - A filename to save the image as. [optional] Returns nothing Scope Client Examples This code would go on a button and save an image of the container that it is in.
system.print.printToImage(event.source.parent, "Screen.jpg") |