• 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: Can I get AppKit to draw this faster ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I get AppKit to draw this faster ?


  • Subject: Re: Can I get AppKit to draw this faster ?
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 9 Oct 2002 18:04:07 -0500

Is there any way to draw an NSBitmapImageRep while respecting the alpha channel, i.e. to make the transparent parts actually transparent instead of black?

Thanks,
Charles

On Wednesday, October 9, 2002, at 01:00 AM, Marcel Weiher wrote:

#1 advice, at least back in NS/OS days: don't use NSImage.

I thought the #1 advice was to cache your drawings in NSImages and draw from them :)

Only (a) small bitmaps (b) few bitmaps (c) drawn repeatedly without change in scale or orientation. In all other cases NSImage is just overhead, quality killer, swap-tester...

Hmm - looking through the AppKit dox - would you expect NSDrawBitmap to be any faster ?

[NSBitmapImageRep draw] should do the trick

Marcel

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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.
_______________________________________________
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.

  • Prev by Date: [newbie] Saving NSImage's
  • Next by Date: Re: NSTableView Drag & Drop... Well, Maybe
  • Previous by thread: Re: Can I get AppKit to draw this faster ?
  • Next by thread: Re: Can I get AppKit to draw this faster ?
  • Index(es):
    • Date
    • Thread