【发布时间】:2011-05-16 03:07:58
【问题描述】:
我有一个名为“test.png”的左向图像(如 UIImageOrientationLeft 文档的“R”图像注释),我首先使用 UIImage 将其读入,然后使用该图像数据创建另一个 UIImage第一个和方向信息,如下所示:
UIImage *image = [UIImage imageNamed:@"test"];
image = [UIImage imageWithCGImage:image.CGImage scale:1.f orientation:UIImageOrientationLeft];
UIImageView *imageView = [[[UIImageView alloc] initWithImage:image] autorelease];
[imageView sizeToFit];
但是在 imageView 上显示的图像是颠倒的。怎么了?
【问题讨论】: