R/nr-scale.R
nr_resize.Rd
Scale a nativeRaster
nr_resize(nr, width, height, algo = "nn")
native raster
new dimensions
'nn' for nearest neighbour (the default), or 'bilinear' for bilinear interpolation.
New nativeRaster
nativeRaster
stretched <- nr_resize(deer_sprites[[1]], 100, 40, algo = 'nn') plot(stretched)