• 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
Draw image within a NSBezierPath with no border
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Draw image within a NSBezierPath with no border


  • Subject: Draw image within a NSBezierPath with no border
  • From: Leonardo <email@hidden>
  • Date: Thu, 06 Mar 2014 17:34:44 +0100
  • Thread-topic: Draw image within a NSBezierPath with no border

Hi, I have an oval NSBezierPath path. I fill it with a blue color,
then I draw an image within the same path. And I can still see a blue tiny
border around the image. I would expect the color be never visible since the
image covers the whole area. That's my code:

fillPath = [NSBezierPath bezierPathWithOvalInRect:fillBounds];
[aBlueColor set];
[fillPath fill];
[fillPath addClip];
[image drawInRect:fillBounds fromRect:NSZeroRect
operation:NSCompositeSourceOver fraction:1.0];

Even if I draw the image in a bigger rect, the blue border is still there.
What do I miss?


Regards
-- Leonardo


_______________________________________________

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: Draw image within a NSBezierPath with no border
      • From: Kyle Sluder <email@hidden>
    • Re: Draw image within a NSBezierPath with no border
      • From: Kevin Meaney <email@hidden>
  • Prev by Date: Re: Inherited Protocols
  • Next by Date: Re: Draw image within a NSBezierPath with no border
  • Previous by thread: Re: Inherited Protocols
  • Next by thread: Re: Draw image within a NSBezierPath with no border
  • Index(es):
    • Date
    • Thread