Re: Attributed string to an Image without window
Re: Attributed string to an Image without window
- Subject: Re: Attributed string to an Image without window
- From: Brett Powley <email@hidden>
- Date: Thu, 17 Jul 2008 09:21:43 +1000
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 (email@hidden)
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:
This email sent to email@hidden