Git Product home page Git Product logo

irimagery's Introduction

IRImagery

IRImagery holds a collection of helper classes and views that work with images, specifically UIImage objects.

Sample

Look at the Sample App.

Useful Classes and Methods

IRImageView

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 additions

  • -[UIImage irStandardImage] creates a point-for-pixel image from self, 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-memory CGImageRef-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

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.

Credits

irimagery's People

Contributors

evadne avatar

Stargazers

SVrbaski avatar mayulu avatar Pin Shih Wang avatar  avatar Bernhard Loibl avatar Paul Goracke avatar Matias Piipari avatar João Prado Maia avatar Willi Wu avatar

Watchers

mayulu avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.