Drawing over a transparent background
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