English 中文(简体)
地球图像的重新定位:与卡介苗联合体相比,吗?
原标题:iOS image resize: is there a better interpolation than the kCGInterpolationHigh?

我利用这一方法,将一个形象化为其原有层面中的两倍:

- (UIImage *)doubleSizeImage:(UIImage *)image {
    CGSize newSize = CGSizeMake(image.size.width*2, image.size.height*2);
    UIGraphicsBeginImageContext(newSize);
    CGContextSetInterpolationQuality(UIGraphicsGetCurrentContext(), kCGInterpolationHigh);
    [image drawInRect:CGRectMake(0, 0, newSize.width, newSize.height)];
    UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();    
    UIGraphicsEndImageContext();
    return newImage;
 }

事实是,污染仍然很差: 我可以清楚地看到,例如,Sato在集聚页时的延迟效应。 因此,我很想知道,是否有更好的办法来提升形象,同时利用第三方图书馆/类别或像这样的内容? 感谢!

最佳回答

每次你干预,你都会重新获得某种工艺品。

由于这页基本上是一个矢量文件,其中含有提纲和可复制的物体,如果你看一看一页的黑板形象,你就会看到,如果你把它大打上大片,那么形象将确实显示手工艺。 鲨鱼没有免疫力;没有免疫力。

问题回答

暂无回答




相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签