Top "Cgimage" questions

CGImage represents a drawable image object in Core Graphics (the low-level procedural drawing API for iOS and Mac OS X).

Creating an NSImage from bitmap data

Ok, it appears that the I'm creating a PDFDocument where pixelWidth is incorrect in the images that I created. So …

objective-c cocoa bitmap nsimage cgimage
Swift 3.0: How to call CGImageCreateWithImageInRect()?

I need to implement this Objective-C code in Swift 3.0 (I'm using Xcode 8 Beta 3): // Note: this code comes from an Obj-C …

swift cgimage swift3 xcode8-beta3
UIImage created from CGImageRef fails with UIImagePNGRepresentation

I'm using the following code to crop and create a new UIImage out of a bigger one. I've isolated the …

iphone uiimage nsdata cgimage
Most efficent way to create a CALayer with an image in it?

I am wondering what the most efficient way is to make a CALayer with an image in it. I know …

iphone uiimage calayer cgimage
Pixel Array to UIImage in Swift

I've been trying to figure out how to convert an array of rgb pixel data to a UIImage in Swift. …

ios arrays swift uiimage cgimage
CGImageRelease in Swift

In Objc I use CGImageRelease method after the treatment of an image. But in Swift this method is not available. …

ios swift cgimage