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

Commit

Permalink
Change FTAssetRenderer to FTPDFAssetRenderer in the PDF example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred committed Oct 31, 2012
1 parent 59cc92a commit 040eee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ UIImage *result = [renderer imageWithCacheIdentifier:@"red"];
If, on the other hand, you have a vector based PDF image, you should generally indicate the size at which it should be rendered as well:
```objc
FTPDFAssetRenderer *renderer = [FTAssetRenderer rendererForPDFNamed:@"my-scalable-icon"];
FTPDFAssetRenderer *renderer = [FTPDFAssetRenderer rendererForPDFNamed:@"my-scalable-icon"];
renderer.targetColor = [UIColor blueColor];
renderer.targetSize = CGSizeMake(123, 456);
UIImage *result = [renderer imageWithCacheIdentifier:@"without-preserving-aspect-ratio"];
Expand Down

0 comments on commit 040eee9

Please sign in to comment.