Color with pattern image
Color with pattern image
- Subject: Color with pattern image
- From: Mirko Viviani <email@hidden>
- Date: Mon, 10 Aug 2009 00:18:39 +0200
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 (email@hidden)
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:
This email sent to email@hidden