Hi,
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"
I've tried to vertically flip the drawing context but the pattern is
always drawn upside-down from the
bottom-left corner.
CGContextScaleCTM(cgContext, 1.0f, -1.0f);
CGContextTranslateCTM(cgContext, 0, -toRect.size.height);
Is there any way to change this behaviour?
Thank you.
--
Ciao,
Mirko
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com