IRImagery holds a collection of helper classes and views that work with images, specifically UIImage
objects.
Look at the Sample App.
IRImageView
is designed to be a drop-in replacement of UIImageView
. It overrides -setImage:
to decode the image in background, create a fully in-memory representation of the image in the correct scale and orientation, then send it back to the image view, preventing decoding to happen on the main thread.
-
-[UIImage irStandardImage]
creates a point-for-pixel image fromself
, and does orientation rotation for you, so the final image is suitable for all sorts of processing and guaranteed to be up-side-up. -
-[UIImage irDecodedImage]
creates an in-memoryCGImageRef
-backed image using-irStandardImage
, and the result is guaranteed to be “hot” and in memory, suitable for immediate display by being trampolined to the main thread. -
-[UIImage irSetRepresentedObject:]
and-[UIImage irRepresentedObject:]
provides a basic level of support for describing multiple image representations against one single truth, e.g. multiple thumbnail images of different sizes. -
-[UIImage irWriteToSavedPhotosAlbumWithCompletion:]
provides a callback block, instead of a selector invocation.
IRImagePageView
is a simple page view that contains a scrollable, pannable, zoomable view hosting an image. It uses IRImageView internally, and can be used in junction with IRPaginatedView
to build a scrollable gallery.
- Evadne Wu at Iridia Productions / Waveface Inc.
- Trevor Harmon for the original UIImage+Resize implementation