15 #import <Cocoa/Cocoa.h>
28 + (id)imageWithContentsOfURL:(NSURL *)url;
34 + (id)imageByReferencingURL:(NSURL *)url;
40 + (id)imageWithPasteboard:(NSPasteboard *)pasteboard;
53 - (NSData *)JPEGRepresentationWithCompressionFactor:(CGFloat)compressionFactor;
70 - (void)drawNinePartImageInRect:(NSRect)toRect capInsets:(NSEdgeInsets)capInsets;
77 - (NSImage*)ninePartImageWithSize:(NSSize)size capInsets:(NSEdgeInsets)capInsets;
84 @property(nonatomic,strong) NSImage *image;
85 @property(nonatomic,assign) NSEdgeInsets capInsets;
87 - (instancetype)initWithImage:(NSImage *)image capInsets:(NSEdgeInsets)capInsets;
88 + (instancetype)layerWithImage:(NSImage *)image capInsets:(NSEdgeInsets)capInsets;
NSData * JPEGRepresentation
JPEG representation of image.
Definition: NSImage.h:49
NSImage shortcuts.
Definition: NSImage.h:21
NSData * PNGRepresentation
PNG representation of image.
Definition: NSImage.h:45
NSDrawNinePartImage convinient methods.
Definition: NSImage.h:62