Blit2
nr_blit2(nr, x, y, src, loc, respect_alpha = TRUE)
native raster to copy into
Where in nr
to place the sprite
. These values must
be vectors of the same length. If the length is greater than 1, then
the sprite
will be pasted into nr
at multiple locations.
Note that the
origin of nativeraster
images is the bottom-left
where the coordinates are (1, 1).
native raster to copy from
a 4 element numeric vector (or list) with the following values
in this exact order: (x0, y0, w, h) corresponding to the
separate arguments to nr_blit()
Should the alpha channel be respected when blitting?
Default: TRUE. If FALSE, then contents will be blindly overwritten
which can be much much faster. If the src
has an
any transparent pixels, respect_alpha = TRUE
is
probably the correct setting.
nativeRaster