Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
Add install section.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Oct 15, 2012
1 parent 611387e commit bd1c590
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
# FTAssetRenderer

Create image assets at runtime in any color when used as mask and/or at any resolution when it’s a PDF.
Create image assets, at runtime, in _any_ color when used as mask and/or at _any_ resolution when it’s a PDF.


### Usage
#### Install

If you’re using [CocoaPods](https://github.com/CocoaPods/CocoaPods), add the following to your Podfile:

```ruby
pod 'FTAssetRenderer'
```

Otherwise, simply add the files from the `Source` dir to your project.


#### Usage

If you have a bitmap image that’s used as a mask to generate images in different colors, then you can use it like so:

Expand Down Expand Up @@ -31,7 +42,7 @@ In the above example, an explicit width and height is given for the result image
By default, the resulting image is cached on disk. For each different target color, a different cache identifier should be used. For instance, for controls you might use identifiers such as `normal`, `highlighted`, and `selected`.


### Acknowledgements
#### Acknowledgements

Based on work by:
* [Oliver Drobnik](https://github.com/Cocoanetics) - http://www.cocoanetics.com/2010/06/rendering-pdf-is-easier-than-you-thought
Expand Down

0 comments on commit bd1c590

Please sign in to comment.