File indexing completed on 2024-03-24 15:23:32

0001 #include "IntegerInterpolation.h"
0002 
0003 #include "ReadOnlyMapImage.h"
0004 
0005 IntegerInterpolation::IntegerInterpolation( ReadOnlyMapImage * const mapImage )
0006     : InterpolationMethod( mapImage )
0007 {
0008 }
0009 
0010 QRgb IntegerInterpolation::interpolate( double const x, double const y )
0011 {
0012     return m_mapImage->pixel( static_cast<int>( x ), static_cast<int>( y ));
0013 }