• 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: What is going wrong with my image coloring?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is going wrong with my image coloring?


  • Subject: Re: What is going wrong with my image coloring?
  • From: "Alan Smith" <email@hidden>
  • Date: Sun, 10 Dec 2006 10:07:06 -0500

Ohh! It all makes sense now. Thanks, that was what I was looking for.

So, if the image isn't mutable initially how do I make it mutable? Like so?

// This would be a category on NSImage.

NSImage *mutableImage = [[NSImage alloc] initWithSize: [self size]];

[mutableImage lockFocus];
[self drawInRect:…];
[mutableImage unlockFocus];

[self release];
self = mutableImage;

But then I run into problems with not knowing if I should set self to be
autoreleased, etc.

Or, is there some way to use - (id)mutableCopy (NSObject) for this?

Suggestions are greatly appreciated.
Peace, Alan


-- // Quotes from yours truly ------------------------- "You don't forget, you just don't remember." "Maturity resides in the mind." "Silence is the Universe's greatest gift." "When the World realizes that religion really is unnecessary, then it shall evolve." _______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >What is going wrong with my image coloring? (From: "Alan Smith" <email@hidden>)
 >Re: What is going wrong with my image coloring? (From: Pascal Pochet <email@hidden>)

  • Prev by Date: Re: Init with something....
  • Next by Date: Re: Init with something....
  • Previous by thread: Re: What is going wrong with my image coloring?
  • Next by thread: CurrencyConverter not precise
  • Index(es):
    • Date
    • Thread