• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question about scaling text within a subView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question about scaling text within a subView


  • Subject: Re: Question about scaling text within a subView
  • From: Matej Bukovinski <email@hidden>
  • Date: Wed, 9 Jun 2010 22:45:19 +0200

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 don't apply a CGAffineTransform but rather increase your views frame and redraw everything as needed.

On 9.6.2010, at 22: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 size
> each time the animation is complete?
>
> CGAffineTransform transformBig = CGAffineTransformMakeScale(1.8f, 1.8f);
>
>
>
> Thanks,
> Eric

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: Question about scaling text within a subView
      • From: Jens Alfke <email@hidden>
References: 
 >Question about scaling text within a subView (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: KVO oddity (or am I *really* idiot ?)
  • Next by Date: Re: Erasing drawn content
  • Previous by thread: Question about scaling text within a subView
  • Next by thread: Re: Question about scaling text within a subView
  • Index(es):
    • Date
    • Thread