ph_savedesktopimage PowerHome formula function
Description
Takes a snapshot of the current desktop window and saves it to a graphic file.
Syntax
ph_savedesktopimage ( filename, width, height )
Argument |
Description |
filename
|
String. The path and filename to save the desktop image to.
|
width
|
Long. The optional resize width of the saved image.
|
height
|
Long. The optional resize height of the saved image.
|
Return value
Integer. Returns a 0.
Usage
Use this funciton save a snapshot of the current desktop window to a graphic file. The graphic type to save as will be determined by the filename extension. Supported types are BMP, JPEG, PNG, TIFF, WBMP, and GIF. Setting the width and height values to 0 will cause the saved graphic file to be at the current desktop resolution. If you wish to resize the graphic before saving, set the width and height values appropriately.