
Originally Posted by
Roman Novoselov
I want to set the real city's map image to the background of the plot.
The data displayed on the plot canvas is related to the scales. For an areal photo ( or other images ) this always means some sort of resampling. How to do this depends on your particular situation.
The plot item for displaying raster data ( data that is mapped somehow to an image ) is QwtPlotRasterItem. You need to derive from this class and implement:
virtual QImage YourRasterItem
::renderImage( const QwtDoubleRect &area
) const;
virtual QImage YourRasterItem::renderImage(
const QwtScaleMap &xMap,
const QwtScaleMap &yMap,
const QwtDoubleRect &area
) const;
To copy to clipboard, switch view to plain text mode
Uwe
Bookmarks