omron — SaveScreenShot

Appendix: Built-in Scripting Language Syntax RGBComponent( numColor , { numComponent | 0 | 1 | 2 } ) numColor The decimal code for a 24-bit RGB color, which can be any integer value between 0 and 16777215. (This color model is also known as "Truecolor" or "millions of colors.") numComponent The color component for which you want to get the level: 0 is red, 1 is green, and 2 is blue. Returned value This function returns an integer value between 0 or 255, which represents the level of the color component in the specified color. Notes For a list of frequently used RGB color codes and their equivalent "plain English" names, see Color Interface .

Examples Get the level of red in color code 13434828 (i.e., sea green): RGBComponent( 13434828, 0 ) Get the level of the component specified by TagComponent in the color specified by TagCode : RGBComponent( TagCode, TagComponent ) SaveScreenShot This function takes a screen shot of the project screen and saves it to an image file. Syntax SaveScreenShot( { | optStrScreenName { | , optStrOutputFile { | , { optNumFormat | 0 | 1 | 2 | 3 | 4 | 5 } } } } ) optStrScreenName The name of a project screen file ( *.scr ). If no file path is specified, then the file must be located in the Screen sub-folder of the project folder (e.g., \ project_name \Screen \ screen_name .scr ).

For projects running on Windows, the screen may be either open or closed. For projects running on Windows Embedded, the screen must be open. This is an optional parameter; if no value (or "" ) is specified, then the currently open and active screen is used. optStrOutputFile The name of the output file. If no file path is specified, then the file is saved in the Web sub- folder of the project folder (e.g., \ project_name \Web\ screen_name .jpg ) This is an optional parameter; if no value is specified, then either the value of optStrScreenName or simply ScreenShot.jpg is used. optNumFormat The format of the image file:

Page 542 InduSoft Web Studio Function Group Execution Windows Embedded Thin Client SaveScreenSho t Graphic Synchronous Supported Supported (only for open screens) Executed on Server Value Description 0 BMP 1 JPG 2 PNG