Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: bc8d572313
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (30 sloc) 0.879 kb
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#include <CoreGraphics/CGBase.h>
#else
#import <Cocoa/Cocoa.h>
#endif
@class SVGHeader;
@class SVGShape;
@interface SVGDocument : NSObject {
SVGHeader *header;
NSMutableArray *shapes;
CGFloat scale;
CGPoint translation;
BOOL outlined;
}
@property(assign) NSMutableArray *shapes;
@property(readonly) CGFloat scale;
- (id)initWithData:(NSData *)data outlinedShapes:(BOOL)outlined;
- (id)initWithContentsOfFile:(NSString *)filePath outlinedShapes:(BOOL)outlined;
- (void)resizeTo:(CGSize)size withPadding:(CGFloat)padding;
- (void)rescaleTo:(CGFloat)scale;
- (SVGShape *)shapeAtPoint:(CGPoint)point;
- (void)revertColors;
- (void)drawInContext:(CGContextRef)context withDebug:(BOOL)debug;
#if TARGET_OS_IPHONE
- (UIImage *)drawToImageOfSize:(CGSize)size;
#else
- (NSImage *)drawToImageOfSize:(CGSize)size;
#endif
@end
Jump to Line
Something went wrong with that request. Please try again.