Re: NSBezierPath fill pattern?
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