Questions tagged «cgcontextdrawimage»

18
CGContextDrawImage在传递UIImage.CGImage时将图像上下颠倒
有谁知道为什么CGContextDrawImage会颠倒我的形象?我正在从应用程序中加载图像: UIImage *image = [UIImage imageNamed:@"testImage.png"]; 然后简单地要求核心图形将其绘制到我的上下文中: CGContextDrawImage(context, CGRectMake(0, 0, 145, 15), image.CGImage); 它在正确的位置和尺寸进行渲染,但是图像是颠倒的。我一定会在这里遗漏一些明显的东西吗?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.