• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Attributed string to an Image without window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Attributed string to an Image without window (From: Nethan Aryan <email@hidden>)

  • Prev by Date: alternative to flash
  • Next by Date: Re: Redrawing CALayer subclass when super layer is scaled
  • Previous by thread: Re: Attributed string to an Image without window
  • Next by thread: NSButton setKeyEquivalent doesn't seem to work
  • Index(es):
    • Date
    • Thread