• 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: Fill an NSView with a tile of NSImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Fill an NSView with a tile of NSImage (From: malcom <email@hidden>)

  • Prev by Date: Re: How to observe and bind (KVO/KVB) to a value generated at runtime...
  • Next by Date: Re: using NSMutableDictionary in place of NSDictionary
  • Previous by thread: Fill an NSView with a tile of NSImage
  • Next by thread: Re: Fill an NSView with a tile of NSImage
  • Index(es):
    • Date
    • Thread