Hello Jim_81,
If you open up the function panel for the SavePanelDisplayToFile function, the documentation notes "
Creates a bitmap "snapshot" of the specified panel, scales it according to the newHeight and newWidth parameters, and then saves it to file.
Prototype
int SavePanelDisplayToFile (int Panel_Handle, int Scope, Rect Area, int New_Height, int New_Width, const char Path[]);
"
The documentation for each parameter is as follow:
panelHandle: The specifier for a particular panel that is currently in memory. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function.
scope: scope integer Specifies whether to use the visible area or the full panel for the bitmap created from the panel display.
area: Use this parameter to restrict the area of the panel scaled and copied into the bitmap. You must pass a Rect structure. The rectangle coordinates, specified in pixels, are relative to the upper–left corner of the panel (directly below the title bar) before the panel is scaled. Use the VAL_ENTIRE_OBJECT macro if you do not want to restrict the area scaled and copied.
new height: If you pass VAL_ENTIRE_OBJECT for the area parameter, this parameter specifies the desired height of the resultant bitmap. (If you want to maintain the same height, pass –1.) Otherwise, the resultant height equals (new height/initial height) × area height
new width: If you pass VAL_ENTIRE_OBJECT for the area parameter, this parameter specifies the desired width of the resultant bitmap. (If you want to maintain the same width, pass –1.)Otherwise, the resultant width equals (new width/initial width) × area width
path: path const char [] The pathname of a file. If it is not an absolute pathname, the pathname is relative to the current working directory.
For further reference, documentation for each CVI function can be found by right clicking on the function panel/desired parameter or searching through the CVI Help.
Thanks.
Wendy L
LabWindows/CVI Developer Newsletter