Skip navigation.
 
mlRe: setPatternPhase: woes
FROM : Keith Blount
DATE : Sat Jul 08 21:45:23 2006

Great! Thank you, I. Savant, that was what I was
missing. I updated my code as follows:

float yOffset = NSMaxY([self convertRect:[self frame]
toView:nil]);
[[NSGraphicsContext currentContext]
setPatternPhase:NSMakePoint(0,yOffset)];

Everything works perfectly now.

Thanks again,
Keith


---- ORIGINAL MESSAGE: ----

Keith:

  If I recall correctly, the pattern's origin is
relative to the
window coordinates, not the view on which it is being
drawn. I hope
this helps.

--
I.S.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Related mailsAuthorDate
mlsetPatternPhase: woes Keith Blount Jul 8, 20:27
mlRe: setPatternPhase: woes I. Savant Jul 8, 21:23
mlRe: setPatternPhase: woes Keith Blount Jul 8, 21:45