3

I want to save map canvas as image (Project > Import/Export > Export Map as Image...) together with rubber band items(colored areas in the image). But QGIS just saves features of shown layers on map canvas.

enter image description here

I get the same result when using PyQGIS.

iface.mapCanvas().saveAsImage(filename)

How can I save QgsRubberBand items by PyQGIS?

  • Have you tried to use QGIS 3? – ahmadhanb Oct 18 '18 at 14:58
  • I think that is not possible – Fran Raga Oct 18 '18 at 16:55
  • @ahmadhanb I've tried in QGIS 3. It doesn't save, too. – Kadir Şahbaz Dec 14 '19 at 22:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.