sFile | (String) The file name with the path (*.bmp, *.png, *.jpg, *.gif or *.tif). The file extension specifies the graphic format.
If a full path is not entered, then it is completed relative to the application folder. It is recommended to use the PROMOTIC path syntax - see PROMOTIC path to files or folders. |
---|---|
sOptions | [optional] (String) Additional parameters that define the way of printing (cutout, etc.).
If not set, then the whole panel is printed with default setting. Entries are in the KeyVal format, for example "x:0;y:0;dx:300;dy:200;". "x:nnn;" (optional) - x-position of the left upper corner of the cutout (in pixels, default 0).
"y:nnn;" (optional) - y-position of the left upper corner of the cutout (in pixels, default 0).
"dx:nnn;" (optional) - The size of the x-cutout (default: the whole panel) (in pixels).
"dy:nnn;" (optional) - The size of the y-cutout (default: the whole panel) (in pixels). |
sParams | [optional] (String) It allows to set the value of parameters of the PmgRoot object.
This parameter is then accessible in configurators of the panel by means of the Macro expression $.par and in the script by the GetPar method. Each parameter here consists of an identifier (name) and a value. Syntax: "pars:{name1:value1;name2:value2; ...}". See also: Parameters of the Pmg object. |
Dim b
b = pMe.Pm("/panel").PrintToBmp("#appres:test.bmp")
Dim b
b = pMe.Pm("/panel").PrintToBmp("#appres:test.png", "x:100;y:100;dx:300;dy:200;")