Export Map Image

2925
3
Jump to solution
08-03-2015 09:36 AM
AndyWright
Occasional Contributor

I'm looking for a quick and dirty way to export the map to an image file (jpg, png, etc).  I don't see any methods on the Map object to get that done.  Anyone have any ideas on how to accomplish this in QML?

0 Kudos
1 Solution

Accepted Solutions
LucasDanzinger
Esri Frequent Contributor

Yea, there isn't anything in our API yet :-/, but this is one of many cool things that we will be including in the Quartz release. If you need this now, you will need to make a Q_INVOKABLE C++ method that exposes the functionality you need to QML.

-Luke

View solution in original post

0 Kudos
3 Replies
LucasDanzinger
Esri Frequent Contributor

We will have this method on our MapView at our Quartz release, but there is no such method on the Map for 10.2.6. You will need to look into writing your own screenshot functionality using Qt, and calling your own method from QML. I haven't tried any of these, but there are some threads in stack overflow and the qt forum that have some suggestions for you to get started.

http://forum.qt.io/topic/8872/how-to-capture-an-image-in-a-qml/2

How to take ScreenShot Qt/QML - Stack Overflow

http://stackoverflow.com/questions/21697185/how-to-take-screenshot-of-qt-qml-application-without-qqu...

-Luke

0 Kudos
AndyWright
Occasional Contributor

I’ve been plowing through many links to stuff like this all morning without much success, so I was hoping there was an easy solution. Thanks for the suggestion though …

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Yea, there isn't anything in our API yet :-/, but this is one of many cool things that we will be including in the Quartz release. If you need this now, you will need to make a Q_INVOKABLE C++ method that exposes the functionality you need to QML.

-Luke

0 Kudos