-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNSImage_PDCategories.h
32 lines (23 loc) · 981 Bytes
/
NSImage_PDCategories.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// NSImage_PDCategories.h
// SproutedUtilities
//
// Created by Philip Dow on 9/9/06.
// Copyright Sprouted. All rights reserved.
// All inquiries should be directed to [email protected]
//
#import <Cocoa/Cocoa.h>
@interface NSImage (PDCategories)
+ (NSImage*) imageByReferencingImageNamed:(NSString*)imageName;
+ (BOOL) canInitWithFile:(NSString*)path;
+ (NSImage*) iconWithContentsOfFile:(NSString*)path edgeSize:(float)size inset:(float)padding;
+ (NSImage *)imageWithPreviewOfFileAtPath:(NSString *)path ofSize:(NSSize)size asIcon:(BOOL)icon;
// from Matt Gemmell
+ (NSImage *) imageFromCIImage:(CIImage *)ciImage;
+ (CIImage *) CIImageFromImage:(NSImage*)anImage;
- (NSImage *) reflectedImage:(float)fraction;
- (NSImage*) imageWithWidth:(float)width height:(float)height;
- (NSImage*) imageWithWidth:(float)width height:(float)height inset:(float)inset;
- (NSData*) pngData;
- (NSAttributedString*) attributedString:(int)qual maxWidth:(int)mWidth;
@end