• 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: Drawing in a window with rounded corners
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing in a window with rounded corners


  • Subject: Re: Drawing in a window with rounded corners
  • From: Greg Best <email@hidden>
  • Date: Tue, 30 Sep 2008 11:24:59 -0700

Without knowing much about what you're trying to do, two thoughts come to mind: make your view rectangle smaller than the window frame, or make the background of your content transparent.

I don't know much of Core Animation, so to the extent that CA is causing your problem I'm useless to you.



On Sep 29, 2008, at 4:21 PM, Daniel Weber wrote:

Hi, I have a custom view that takes up the whole frame of my textured
window. Normally, the corners of a textured window are rounded. However,
since my custom view is rectangular, it draws over the rounded corners. I am
using Core Animation to draw in the view. I think what I need to do is clip
my drawing so the corners are transparent, but I haven't been successful.
What I've tried so far is drawing a rectangle with rounded corners that
approximates the window's rounded corners using CGContextAddArcToPoint. Then
I call CGContextClip. But it's not working, all I'm seeing is garbage at the
window corners, not transparency. Any suggestions?


Thanks,
Dan
_______________________________________________

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

_______________________________________________

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


References: 
 >Drawing in a window with rounded corners (From: "Daniel Weber" <email@hidden>)

  • Prev by Date: Re: Collections can be simple Attributes in Core Data
  • Next by Date: Re: ld: duplicate symbol
  • Previous by thread: Drawing in a window with rounded corners
  • Next by thread: Re: Drawing in a window with rounded corners
  • Index(es):
    • Date
    • Thread