cgimage
CGImage gets stretched in CALayer
I have an NSMutableArray of CGImage objects. All the images have different dimensions ( 80x20 px, 200x200 px, 10x10 px, etc...)[详细]
2023-03-12 04:31 分类:问答Fasted way to detect and remove transparent space around NSImage
What is the fastest way to trim an image (NSImage or CGImageRef) so that all transparent areas around the image are removed?[详细]
2023-03-12 03:51 分类:问答(iphone) Is CGImageRef NSObject ? c pointer?
I\'d like to pass CGImageRef variable to performSelectorOnMainThread wrapping it inside NSValue with valueWithPointer is adequate here?[详细]
2023-02-28 06:02 分类:问答UIImage stutter on first load
I have a UIScrollview that zooms a PNG image in and out on a double开发者_如何转开发 tap. The way I have it set up, I create a few multiple sizes of the PNG image using UIGraphicsBeginImageContext/UIG[详细]
2023-02-24 09:58 分类:问答iPhone CGContextRef CGBitmapContextCreate unsupported parameter combination
In my application I need to resize and crop some images, stored locally and online. I am using Trevor Harmon\'s tutorial which implements UIImage+Resize.[详细]
2023-02-22 05:24 分类:问答iPhone - UIImage imageWithData returning nil
I need to create an UIImage from a byte array. Here is now I create the byte array: image = CGImageCreateWithImageInRect(aux.CGImage, imageRect);[详细]
2023-02-14 05:58 分类:问答-[UIImage CGImage] returning nil
I\'m wondering under which circumstances this code breaks in the second assert. In other words, when can -[UIImage CGImage] return nil? The documentation isn\'t very telling here.[详细]
2023-02-13 08:45 分类:问答iOS Retina Display Masking Bug
I\'m currently using two images for a menu that I\'ve built. I was using this code a while ago for normal display systems and it was working fine, with the retina display I\'m having some issues with[详细]
2023-02-12 10:10 分类:问答Objective c: drawing a png on the screen (UIImage inside a UIImageView)
I\'m writing a brickbreaker and I\'m creating a class that will draw all elements (balls, bricks and paddle) on the screen.[详细]
2023-02-09 14:44 分类:问答Trim alpha from CGImage
I need to get a trimmed CGImage. I have an image which has empty space 开发者_如何学JAVA(alpha = 0) around some colors and need to trim it to get the size of only the visible colors.[详细]
2023-02-09 14:29 分类:问答