resize image with objective c

I have to create thumbnails in my cocoa apps.
I’ve tryed with applescript in cocoa, but with image events I can’t modify resolution of my image.
I don’t want use applications as photoshop or similar because I need that my cocoa-apps works indipendent from user installations…
So, can I resize image only with cocoa-obj-c???