Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
IOSurface: Difference between revisions - iPhone Development Wiki

IOSurface: Difference between revisions

From iPhone Development Wiki
m (Created page with '{{about|the CoreFoundation class|the framework|IOSurface.framework}} '''IOSurface''' is an object encompassing a kernel-managed rectangular pixel buffer in the {{fwlink|IOSurfac…')
 
mNo edit summary
 
Line 1: Line 1:
{{about|the CoreFoundation class|the framework|IOSurface.framework}}
{{about|the CoreFoundation class|the framework|IOSurface.framework}}


'''IOSurface''' is an object encompassing a kernel-managed rectangular pixel buffer in the {{fwlink|IOSurface}} framework.
'''IOSurface''' is an object encompassing a kernel-managed rectangular pixel buffer in the {{fwlink|IOSurface}} framework. It is a thin wrapper on top of an '''IOSurfaceClient''' object which actually interfaces with the kernel.


== Converting IOSurfaces into normal images ==
== Converting IOSurfaces into normal images ==

Latest revision as of 09:38, 23 January 2010

IOSurface is an object encompassing a kernel-managed rectangular pixel buffer in the IOSurface framework. It is a thin wrapper on top of an IOSurfaceClient object which actually interfaces with the kernel.

Converting IOSurfaces into normal images

Signature CGImageRef UICreateCGImageFromIOSurface(IOSurfaceRef ioSurface);
Available in 3.0 –
Signature -(id)initWithIOSurface:(IOSurfaceRef)ioSurface; // UIImage method.
Available in 3.0 –

In UIKit there are functions to convert an IOSurface to CGImage and UIImage.

References