Re: Fill an NSView with a tile of NSImage
Re: Fill an NSView with a tile of NSImage
- Subject: Re: Fill an NSView with a tile of NSImage
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 24 Feb 2006 17:26:59 -0800
On Feb 24, 2006, at 4:13 PM, malcom wrote:
Hello,
I've a problem with an NSView and NSImage.
I would to fill an NSView using a small image by duplicating it
n-times (tile?). I've tried using this code:
You're doing too much work. See +colorWithPatternImage: in the
NSColor documentation. For finer control, see -patternPhase and -
setPatternPhase: in NSGraphicsContext.
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden