Re: Best way to draw large tiled images?
Re: Best way to draw large tiled images?
- Subject: Re: Best way to draw large tiled images?
- From: Eric Wing <email@hidden>
- Date: Fri, 20 Aug 2010 17:20:00 -0700
On 8/18/10, Gideon King <email@hidden> wrote:
> 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).
>
> 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+.
I think CATiledLayer from Core Animation would be a good place to
start. I am not aware of a NSView counterpart, so layer hosting view
will be the way to go.
Bill Dudney's stuff is probably a great place to start learning CATiledLayer.
(Quick Google search:)
http://bill.dudney.net/roller/objc/entry/catiledlayer_example
-Eric
--
Beginning iPhone Games Development
http://playcontrol.net/iphonegamebook/
_______________________________________________
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