Page 1 of 1

NSImage

Posted: 2010-06-16T14:44:15-07:00
by morth
Hi,

I've made a NSImageRep that loads images using ImageMagick, in case anyone is interested.
It's very basic so far, and is actually leaking memory, but it might be a good starting point anyway.
Currently it only works through

Code: Select all

[[NSImage alloc] initWithData:...];
cause that's all I need for this project. Se NSImageRep class reference for more options.

The files are at
http://bazaar.launchpad.net/~pelle-mort ... ImageRep.m
http://bazaar.launchpad.net/~pelle-mort ... ImageRep.h
http://bazaar.launchpad.net/~pelle-mort ... -magick.sh
The last one is the script that builds ImageMagick and puts libMagickCore.a in the products directory (you then add it to your main target together with the Obj-C files).