On 9 Jun 2010, at 21:11, Eric E. Dolecki wrote:
I have a view that contains text in it. I am scaling it up and down... When
at 100% the text is nice and crisp. When scaled, it's blurry (the default
state for the view).
How can I fix that? Would I need to set the text again at a specific
Text will scale just fine by changing the view's bounds (or the transform)
if you are NOT using a layer-backed view. I had to abandon this approach on
the iPad because everything is layer-backed and it just scales pixels.
On 6/10/10 4:04 AM, cocoa-dev-requ...@lists.apple.com
I have a view that contains text in it. I am scaling it up and down... When
at 100% the text is nice and crisp. When scaled, it's blurry (the default
state for the view).
How can I fix that? Would I need to set the text again at a specific size
each time the animation is complete?
By applying a CGAffineTransform you're basically doing a pixel operation. The
pixels from your normally (100%) scaled view are taken and modified by the
transformation matrix. Scaling up this way produces blurry results, that's an
universal truth.
If you need sharp results on both scales
On Jun 9, 2010, at 1:45 PM, Matej Bukovinski wrote:
If you need sharp results on both scales don't apply a CGAffineTransform but
rather increase your views frame and redraw everything as needed.
You actually need to mess with the view’s bounds after changing the frame,
otherwise you get