BTUIKVectorArtView.h 682 B

12345678910111213141516171819202122
  1. #import <UIKit/UIKit.h>
  2. /// Subclassed to easily draw vector art into a scaled UIView.
  3. /// Useful for using generated UIBezierPath code from
  4. /// [PaintCode](http://www.paintcodeapp.com/) verbatim.
  5. @interface BTUIKVectorArtView : UIView
  6. /// Subclass and implement this method to draw within a context pre-scaled to the
  7. /// view's size.
  8. - (void)drawArt;
  9. /// This property informs the BTVectorArtView drawRect method of the dimensions
  10. /// of the artwork.
  11. @property (nonatomic, assign) CGSize artDimensions;
  12. /// Returns a UIImage of the artwork
  13. ///
  14. /// @param size the size of the desired UIImage
  15. /// @return A UIImage of of the artwork
  16. - (UIImage *)imageOfSize:(CGSize)size;
  17. @end