Best way to draw large tiled images?
Best way to draw large tiled images?
- Subject: Best way to draw large tiled images?
- From: Gideon King <email@hidden>
- Date: Thu, 19 Aug 2010 09:15:04 +1000
I have a relatively large area on my NSView that I want to tile images into. I tried using CIAffineTile, but it gives me the following error: "CoreImage: ROI is not tilable" for even moderately large images (for small images, it works exactly as I want it to).
I tried using [NSColor colorWithPatternImage:], but that doesn't allow me to set the origin relative to my view (only relative to the window), and doesn't appear to play nicely with a scrollview.
Therefore I'm looking for the formula for efficiently drawing a tiled image into a view, scaled to the size I want, at the origin I want, with the opacity I want. Any tips?
Also, I am starting to learn about core animation, and may make this either a layer backed or layer hosting view. Would either of these configurations alter my choices for tiling?
Deployment is 10.5+.
Thanks
Gideon
_______________________________________________
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