• 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
Drawing over a transparent background
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drawing over a transparent background


  • Subject: Drawing over a transparent background
  • From: Ron Fleckner <email@hidden>
  • Date: Mon, 24 Aug 2009 09:33:50 +1000

Hi,

I asked about this on quartz-dev but go no reply after a few days so I'm asking here.

My borderless window has a semi-transparent background. When the drawing in a subview changes, the background retains a ghost of the original drawing in the subview. I don't want that ghost image!

The app is a resizeable analog clock. (Yes, I'm a dilettante recreational coder.)

I've tried various -display methods, but none of them, so far, have fixed the problem. So -setNeedsDisplay:, -setNeedsDisplayInRect:, - displayRect, -displayRectIgnoringOpacity and others don't affect the ghosting problem.

Here's an image of what I'm seeing:

<http://members.ozemail.com.au/~ronfleckner/DrawingWithTransProb.png>

If the background is a solid colour, the drawing looks fine. It only appears when the background has opacity < 1.0 The opacity and colours of the window are set in the interface by the user.

Thanks for any help

Ron

_______________________________________________

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: Drawing over a transparent background
      • From: Rob Keniger <email@hidden>
  • Prev by Date: Re: DOMNode problems getting info out...
  • Next by Date: Using Core Data NSManagedObject subclasses outside of a managed object context
  • Previous by thread: Re: DOMNode problems getting info out...
  • Next by thread: Re: Drawing over a transparent background
  • Index(es):
    • Date
    • Thread