• 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: NSBezierPath fill pattern?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBezierPath fill pattern?


  • Subject: Re: NSBezierPath fill pattern?
  • From: Matt Gough <email@hidden>
  • Date: Mon, 14 Jul 2008 16:52:15 +0200

Sounds like you want to use [NSColor colorWithPatternImage] and use that as the fill color.

Matt
On 14 Jul 2008, at 4:48pm, David Harper wrote:

Hello,

I'm hoping to find a way to fill an NSBezierPath with a bitmap pattern of arbitrary size - probably something like 32x32. It will be a 2-color "on-off" (foreground-background) pattern where each color can be defined by the user. Looking through the NSBezierPath class documentation, nothing seemed to exist to help with this. Line patterns were all I found. Can anyone recommend an alternative approach, perhaps using Core Graphics or OpenGL?

Thanks,
- Dave H.
_______________________________________________

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: 
 >NSBezierPath fill pattern? (From: David Harper <email@hidden>)

  • Prev by Date: NSBezierPath fill pattern?
  • Next by Date: What is the best way?
  • Previous by thread: NSBezierPath fill pattern?
  • Next by thread: What is the best way?
  • Index(es):
    • Date
    • Thread