• 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: clearing (not erasing) when drawing from a thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: clearing (not erasing) when drawing from a thread


  • Subject: Re: clearing (not erasing) when drawing from a thread
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 26 Nov 2007 07:58:21 -0800
  • Thread-topic: clearing (not erasing) when drawing from a thread

On Sun, 25 Nov 2007 15:57:10 -0800, m <email@hidden> said:
>            [tiffImage drawAtPoint:NSMakePoint(0, 0)
>fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
>
>The problem is that successive frames of my image get composited on
>top of each other

Possibly this has something to do with what NSCompositeSourceOver means. It
might help to experiment with other options...

> (my drawing will be placed over an arbitrary and possibly changing background)

But you are still the one drawing that background, right? So if necessary
you *could* draw it again in the area where the image is to go, right?

Just some things to think about - These are the sorts of considerations that
have led me to solutions of similar problems in the past... m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>



_______________________________________________

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

  • Follow-Ups:
    • Re: clearing (not erasing) when drawing from a thread
      • From: Murat Konar <email@hidden>
  • Prev by Date: Toll Free Bridging and Garbage Collection
  • Next by Date: Re: Subclassing NSTextFieldCell - can't even get started!
  • Previous by thread: Re: clearing (not erasing) when drawing from a thread
  • Next by thread: Re: clearing (not erasing) when drawing from a thread
  • Index(es):
    • Date
    • Thread