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 - iPhone Development Wiki


From iPhone Development Wiki
(Redirected from IOSurfaceRef)

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.