-
Notifications
You must be signed in to change notification settings - Fork 33
/
NSImage+IconRef.h
35 lines (22 loc) · 1.07 KB
/
NSImage+IconRef.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
33
34
35
/* =============================================================================
PROJECT: testapp
FILE: NSImage+IconRef.h
COPYRIGHT: (c) by Troy Stephens, all rights reserved.
AUTHORS: Troy Stephens, M. Uli Kusterer - UK
LICENSES: GNU GPL, Modified BSD
PURPOSE: Create an IconRef from an image.
REVISIONS:
2005-02-09 UK Created.
========================================================================== */
// -----------------------------------------------------------------------------
// Headers:
// -----------------------------------------------------------------------------
#import <Cocoa/Cocoa.h>
// -----------------------------------------------------------------------------
// Expatriates from Troy Stephens' IconFamily class:
// -----------------------------------------------------------------------------
@interface NSImage (UKIconRef)
-(IconRef) iconRefRepresentation;
-(Handle) get32BitDataAtPixelSize: (int)requiredPixelSize;
-(Handle) get8BitMaskAtPixelSize: (int)requiredPixelSize;
@end