Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
13.5
Statistic
FMM
Blog
Renders screenshot of the map view.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
MapView | 9.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
Parameter | Description | Example | Flags |
---|---|---|---|
MapView | The map view reference number. | $$MapView | |
ImageType | The type of image to return. Either JPEG, PNG, GIF or BMP. Default is JPEG. |
"JPEG" | Optional |
FileName | The filename to use for the picture. Default is "image" with the extension matching the image type. |
"test.jpg" | Optional |
Returns container or error.
Save screenshot to desktop:
If [ Length ( $$MapView) > 0 ]
Set Variable [ $screenshot ; Value: MBS("MapView.Screenshot"; $$MapView; "PNG") ]
Set Variable [ $file ; Value: MBS( "Path.AddPathComponent"; MBS( "Folders.UserDesktop" ); "mapview.png" ) ]
Set Variable [ $r ; Value: MBS( "Container.WriteFile"; $screenshot; $file) ]
End If
This function checks for a license.
Created 1st June 2019, last changed 17th December 2022