NSImage

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
morth

NSImage

Post 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).
Post Reply