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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to