1
我想繪製尺寸大於視圖框架的圖像,並保留原始圖像的大小和質量。在視圖中繪製大圖像
我嘗試繪製視圖框架,但它失去了質量。
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)];
SS:http://www.imagebam.com/image/f80341285082782