I would like to get a screenshot of a map (basemap with layers on top) without using the print server. Is that possible?
Thanks!
No need to use the Print Server. We have the ability to take a screenshot directly on the GeoView via exportImage().
Here are the QML and C++ samples for this
arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/Maps/TakeScreenshot at master · Esri/arcgis-runtime-samples-qt ·…
arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_CppSamples/Maps/TakeScreenshot at master · Esri/arcgis-runtime-samples-qt ·…
Lucas,
Yes, those examples look perfect. Thanks!
I'm having a hard time running the examples. I tried following the directions on this page, but when I attempt to open the .pro file I get an error, "No valid kits found". When I click on the options link it takes me to the following Settings page. It looks like I need to set a compiler. How do I do that?
Thanks,
Matt
Are you using AppStudio? Or are you using the Runtime SDK and Qt installed standalone? If using the Runtime & Qt directly, did you follow the install and setup guide? Sounds like you are missing the Visual C++ Compiler Install and set up on Windows—ArcGIS Runtime SDK for Qt | ArcGIS for Developers
I'm using AppStudio. How can I run the example in AppStudio? There is no is not .qmlproject file.
Matt,
In AppStudio for ArcGIS, the Map Viewer template has this functionality implemented where you can take a look at the source code from, using ArcGIS Runtime SDK for Qt (QML). It is part of the "Measure" panel functionality.
The source code for that camera button is on MapViewer/views/ScreenShotsView.qml, on the very bottom of the page, called function "takeScreenShot()"
I hope this is helpful,
Erwin
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.