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

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

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.framework: Difference between revisions - iPhone Development Wiki

IOSurface.framework: Difference between revisions

From iPhone Development Wiki
m (IOSurface)
 
mNo edit summary
Line 7: Line 7:


In 2.x the same function is provided by the '''CoreSurface''' framework. On 3.x CoreSurface is deprecated, and its functions are now wrappers of the corresponding IOSurface functions.
In 2.x the same function is provided by the '''CoreSurface''' framework. On 3.x CoreSurface is deprecated, and its functions are now wrappers of the corresponding IOSurface functions.
== Converting IOSurfaces into normal images ==
{{function signature
|signature=CGImageRef UICreateCGImageFromIOSurface(IOSurfaceRef ioSurface);
|firmware=3.0 –
}}
{{function signature
|signature=-(id)initWithIOSurface:(IOSurfaceRef)ioSurface; // UIImage method.
|firmware=3.0 –
}}
In {{fwlink|UIKit}} there are functions to convert an IOSurface to CGImage and [[UIImage]].


== References ==
== References ==

Revision as of 08:55, 23 January 2010

IOSurface.framework
Private Framework
Availabile 3.0 – present
Class Prefix IOSurface
Headers [headers.cynder.me]

IOSurface is private CoreFoundation frameworks for managing pixel buffers, or in official words, "sharing graphics surfaces between applications"[1]. It is also a public framework in Mac OS X 10.6 (Snow Leopard).

In 2.x the same function is provided by the CoreSurface framework. On 3.x CoreSurface is deprecated, and its functions are now wrappers of the corresponding IOSurface functions.

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