• 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
Image from UIView - text jagged...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Image from UIView - text jagged...


  • Subject: Image from UIView - text jagged...
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Wed, 20 Jan 2016 19:17:17 +0000

I am creating images from what I'll call chart cells - so that when in a
scroll pane scrolling is smooth. Currently it's not. So I use the following
method and load each into a UIImageView. Works great except the text in the
screens looks jagged. NO scaling is happening. Is there anything beyond
making the source 2x as large and then scaling down to fit? This is for
retina.

func translateToBitmap(item:ConCellView) ->UIImage {
        UIGraphicsBeginImageContext(item.bounds.size)
        item.layer.allowsEdgeAntialiasing = true
        item.layer.renderInContext(UIGraphicsGetCurrentContext()!)
        let chartImage = UIGraphicsGetImageFromCurrentImageContext()
        UIGraphicsEndImageContext()
        return chartImage
    }
_______________________________________________

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: Image from UIView - text jagged...
      • From: Ryan Dignard <email@hidden>
  • Prev by Date: Re: How to record screen in iOS
  • Next by Date: Re: Image from UIView - text jagged...
  • Previous by thread: Re: How to record screen in iOS
  • Next by thread: Re: Image from UIView - text jagged...
  • Index(es):
    • Date
    • Thread