You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow source raster *subpixel* positioning on map canvasses. This allows zooming in on coarse rasters to be accurate (i.e. when 1 source pixel covers more than one screen pixel). This has only been proof-of-concept tested, therefore the author will not be offended if further refinements are committed. This addresses CVS bug 895502.
/** \brief The offset from the left hand edge of the raster for the rectangle that will be drawn to screen.
247
-
* TODO Check this explanation is correc!*/
246
+
/** \brief The offset (in source raster pixel coordinates) from the left hand edge of the source raster for the rectangle that will be drawn to screen. */
247
+
float rectXOffsetFloat;
248
+
/** \brief The offset (in source raster pixel coordinates) from the top edge of the source raster for the rectangle that will be drawn to screen. */
249
+
float rectYOffsetFloat;
250
+
/** \brief The offset (in source raster pixel coordinates) from the left hand edge of the source raster for the rectangle that will be drawn to screen - truncated to an integer. */
248
251
int rectXOffsetInt;
249
-
/** \brief The offset from the bottom edge of the raster for the rectangle that will be drawn to screen.
250
-
* TODO Check this explanation is correc!*/
252
+
/** \brief The offset (in source raster pixel coordinates) from the top edge of the source raster for the rectangle that will be drawn to screen - truncated to an integer. */
251
253
int rectYOffsetInt;
252
254
/** \brief Lower left X dimension of clipped raster image in raster pixel space.
253
255
* RasterIO will do the scaling for us, so for example, if the user is zoomed in a long way, there may only
@@ -374,10 +376,12 @@ class QgsRasterLayer : public QgsMapLayer
374
376
QPixmap getPaletteAsPixmap();
375
377
376
378
/** \brief This is called when the view on the rasterlayer needs to be refreshed (redrawn). */
0 commit comments