I need my map canvas to be exactly 1920x1080. So the
Save as image would save a png exactly this size.
I've tried setting it with
But no luck,
resize() seems to be deprecated.
I'm using QGIS 2.16.0.
I'd also like to set map extent programmatically, if that's related. Unfortunately, using composer is not an option here.