Re: Tiling, applying it in my app.
Re: Tiling, applying it in my app.
- Subject: Re: Tiling, applying it in my app.
- From: Matt Neuburg <email@hidden>
- Date: Sat, 22 Jan 2011 10:47:50 -0800
On Jan 22, 2011, at 10:30 AM, Gustavo Pizano wrote:
> I see a Bigger image, as if it was scaled, but because in fact the image is displaying comes form a double size image there is no perceptive pixelation after the 2.0 scale
The idea is that you start using the double sized image starting just above scale 1.0. That way, you are scaling the image *down*, and this always looks good. When the scale reaches above 2.0, you switch to the quadruple-sized image (if you have one). As I said, look at the Photoscroller example which shows this happening automatically (because CATiledLayer asks for a redraw automatically at those moments).
Don't forget to test on a double-resolution device (or in the Simulator) because this can change some of the arithmetic. You may have to take into account both the scale of the zoom and the scale of the screen. It depends on the details of your implementation. m.
--
matt neuburg, phd = email@hidden, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com
_______________________________________________
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