You don't have to have a window or a view to draw: you can draw directly to an image using [NSImage lockFocus].

On 17/07/2008, at 2:59 AM, Nethan Aryan wrote:

Hello All,
Need your help...

I have to write a command line utility which will create an image from another source image by adding some attributed text onto the source image.

Can you suggest how to do it?

If I had to write same application with UI, then I think I would have used a view on a window to write the attributed text using drawAtPoint and then getting the TIFFRepresentation of the image. This way I have got Image of the attributed string.

Now since I have two images I would have generated the final Image by using compositeToPoint...

But again since I don't want to have any window in my command based application I don't know how to proceed?
Please suggest

Thanks in advance
Nethan

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to