NSImage (EDExtensions)


Declared In:
NSImage+XFace.h


Category Description

Various common extensions to NSImage.

All X-Face related methods are based on code written by James Ashton, Sydney University in June 1990.


Method Types

Handling the X-Face format
- initWithXFaceData:
- xFaceData

Instance Methods

initWithXFaceData:

- (id)initWithXFaceData:(NSData *)someData

Initialises a newly created image by decoding the X-Face format image in someData.


xFaceData

- (NSData *)xFaceData

Returns the receiver in X-Face format if it contains an appropriate representation or nil otherwise. An appropriate representation is a 48 x 48 pixels NSBitmapImageRep in either NSDeviceWhiteColorSpace or NSDeviceBlackColorSpace.


Version 2.1 Copyright ©2002 by Erik Doernenburg. All Rights Reserved.