The source and destination nativeRaster images must have the same dimensions.

nr_copy_into(dst, src)

Arguments

src, dst

Source and destination nativeRaster images

Value

The 'dst' nativeRaster

Details

If the nativeRaster images are of different sizes, use the nr_blit() function.

Examples

nr1 <- nr_new(200, 100, 'hotpink')
nr2 <- nr_new(200, 100, 'green')
nr_copy_into(nr1, nr2)
plot(nr1)