我在R中使用"plot“函数来画一张图,我想改变图像本身的大小而不是绘图区域,然后我将保存它以便在其他地方显示。 我尝试使用以下代码。 par(cex = 2) # change the size of the content in the image not itself
plot(c(1,2,3),c(1,2,3),type = "p") 但它只能改变图片中内容的大小,而不能改变图片本身,希望能得到您的帮助。
我在屏幕上显示图片:
Bitmap bitmap = decodeSampledBitmapFromResource(data, 100, 100);
decodeSampledBitmapFromResource()方法如下所示:
public static Bitmap decodeSampledBitmapFromResource(String path,
int reqWidth, int reqHeight) {
// First decode wi