/**
设置图片 分辨率 清晰
@param image 图片
@param reSize 大小
@return 图片
*/
- (UIImage *)RightreSizeImage:(UIImage *)image toSize:(CGSize)reSize {
if ([[UIScreen mainScreen]scale] == 2.0) {
UIGraphicsBeginImageContextWithOptions(reSize, NO, 2.0);
}else {
UIGraphicsBeginImageContext(reSize);
}
[image drawInRect:CGRectMake(0, 0, reSize.width, reSize.height)];
UIImage *reSizeImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return [reSizeImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
}