Re: Color with pattern image

2009-08-11 Thread Mirko Viviani
On 11/ago/09, at 09:03, Uli Kusterer wrote: You probably want to do the pattern phase thing Rob suggested, but just for completeness' sake, there's a flipped property on NSImage that you could use to fix the upside-down part of this new problem. Yes I know but I need to use the pattern pha

Re: Color with pattern image

2009-08-11 Thread Uli Kusterer
On Aug 10, 2009, at 12:18 AM, Mirko Viviani wrote: I've tried to vertically flip the drawing context but the pattern is always drawn upside-down from the bottom-left corner. You probably want to do the pattern phase thing Rob suggested, but just for completeness' sake, there's a flipped pr

Re: Color with pattern image

2009-08-09 Thread Rob Keniger
On 10/08/2009, at 8:18 AM, Mirko Viviani wrote: I'm using -[NSColor colorWithPatternImage:] to draw a background pattern image and I want to set a constraint for the drawing starting rectangle. The docs says that "The image is tiled starting at the bottom of the window" ... Is there any w