我想绘制一个尺寸大于视图框架的图像,并保持原始图像的大小和质量。
我尝试用视图框架绘制,但它会失去质量。
UIGraphicsBeginImageContext(self.imageViewDrawing.frame.size);
[self.imageViewDrawing.image drawInRect:CGRectMake(0, 0, self.imageViewDrawing.frame.size.width, self.imageViewDrawing.frame.size.height)];
SS:http ://www.imagebam.com/image/215dd5285081681
我尝试使用图像的大小进行绘制,但它只是在图像绘制上下文帧大小中绘制。
UIGraphicsBeginImageContext(self.imageViewDrawing.image.size);
[self.imageViewDrawing.image drawInRect:CGRectMake(0, 0, self.imageViewDrawing.image.size.width, self.imageViewDrawing.image.size.height)];
SS:http ://www.imagebam.com/image/682962285081678
UIGraphicsBeginImageContext(self.imageViewDrawing.frame.size);
[self.imageViewDrawing.image drawInRect:CGRectMake(0, 0, self.imageViewDrawing.image.size.width, self.imageViewDrawing.image.size.height)];