资源说明:If native is FALSE then an array of the dimensions height x width x channels. If there is only one
channel the result is a matrix. The values are reals between 0 and 1. If native is TRUE then an
object of the class nativeRaster is returned instead. The latter cannot be easily computed on but
is the most efficient way to draw using rasterImage.
Most common files decompress into RGB (3 channels) or Grayscale (1 channel). Note that Grayscale
images cannot be directly used in rasterImage unless native is set to TRUE because rasterImage
requires RGB or RGBA format (nativeRaster is always 8-bit RGBA).
JPEG doesn’t support alpha channel, you may want to use PNG instead in such situations.
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。