Skip navigation.
 
mlRe: How do I pattern an image in a view w/o "scrolling"?
FROM : glenn andreas
DATE : Fri Jul 28 18:04:07 2006

On Jul 28, 2006, at 10:45 AM, Alan Smith wrote:

> Micheal -
> I have indeed used colorWithPatternImage. I set that and then used
> NSBezierPath's fillRect and NSRectFill. It has that "scrolling" which
> was in my original post. It doesn't quite work.


Are you using NSGraphicsContext's "setPatternPhase"?  It will allow 
you change the "origin" of the pattern, allowing it to be synched 
with something other than the window...


Glenn Andreas                      <email_removed>
  <http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate  | images, textures, 
fractals, art