include/cinder/cocoa/CinderCocoaTouch.h File Reference

Go to the source code of this file.

Classes

class  cinder::cocoa::SafeUiImage
 A class which encapsulate a UIImage and an associated CGImageRef in order to work around memory ownership ambiguities in Cocoa Touch. More...

Namespaces

namespace  cinder
namespace  cinder::cocoa

Functions

Surface8u cinder::cocoa::convertUiImage (UIImage *uiImage, bool assumeOwnership=false)
 Converts a UIImage* into a cinder::Surface8u If assumeOwnership the result will increment the retain count on construction and decrement it upon the its own destruction.
SafeUiImage cinder::cocoa::createUiImage (const ImageSourceRef imageSource)
void cinder::cocoa::writeToSavedPhotosAlbum (const ImageSourceRef imageSource)
 Writes an image to the device's Photo Album.