Topics   All   Mac OS X (Only)   Windows (Only)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 4.0   4.1   4.2   4.3   4.4   5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2    Statistic  

ScreenshotRect

Component: Screenshot
Version: 1.0
Mac OS X: Yes
Windows: Yes
Server: Yes

MBS( "ScreenshotRect"; Left; Top; Width; Height; Format; Quality; File Name )

Parameters

Parameter Description Example value
Left Left 100
Top Top 100
Width Width of the rectangle 200
Height Height of Rectangle 200
Format File Format JPEG
Quality The quality of the image 1024
File Name The desired file name Test File.jpg

Result

Returns the image as a container value so you can assign it to a container.

Description

This function will take snapshot of the area of the screen described by the first four Parameters.
Updated for Mac OS X 10.7 in plugin version 2.5.

Examples

Capture a portion of the screen to a JPEG

Let(
[
/*-----------------PARAMETERS--------------------*/
Left = 100;
Top = 100;
Width = 200;
Height = 200;
Format = "JPEG";
Quality = 1024;
File Name = "Test File.jpg"
];
/*-------------------FUNCTION----------------------*/
MBS(
"ScreenshotRect";
Left ;
Top ;
Width ;
Height ;
Format ;
Quality ;
File Name
)
)


Screenshot   -   SendCommand

Feedback: Report problem or ask question.




Links
MBS Real Studio Plugins - Pfarrgemeinde Ministranten Nickenich