• 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: How to clear an NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to clear an NSImage


  • Subject: Re: How to clear an NSImage
  • From: Janek Priimann <email@hidden>
  • Date: Sat, 12 Apr 2003 15:31:19 +0300

> Hi,
>
> my question is quite simple: I have an NSImage instance with
> transparent background and things drawn on it, and I would like to
> clear what is drawn to have my NSImage empty, just with the transparent
> background. How can I do?
>
> Thakns in advance,
>
> -- Arthur

[myImage autorelease];
myImage = [[NSImage allocWithZone:NULL] initWithSize:[myImage size]];

-----------------------------------------
Hot Mobiil - helinad, logod ja piltsunumid!
http://portal.hot.ee
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >How to clear an NSImage (From: Arthur VIGAN <email@hidden>)

  • Prev by Date: Re: NSMutableDictionary not sending release message to contained objects at dealloc time
  • Next by Date: Re: Access NetCDF library
  • Previous by thread: How to clear an NSImage
  • Next by thread: Re: How to clear an NSImage
  • Index(es):
    • Date
    • Thread