Re: Image from UIView - text jagged...
Re: Image from UIView - text jagged...
- Subject: Re: Image from UIView - text jagged...
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 20 Jan 2016 21:06:41 +0000
Thanks so much - things look perfect specifying the scale like that!!!
On Wed, Jan 20, 2016 at 2:31 PM Eric Dolecki <email@hidden> wrote:
> No but I'll look at that in a bit and report back. Thank you!!!
>
> Sent from Outlook Mobile <https://aka.ms/qtex0l>
>
>
>
>
> On Wed, Jan 20, 2016 at 11:23 AM -0800, "Ryan Dignard" <
> email@hidden> wrote:
>
> Have you tried `UIGraphicsBeginImageContextWithOptions(item.bounds.size,
>> NO, 0.0)` ? I've never had problems with the implicit scale provided by
>> the last parameter being `0.0`
>>
>> On Wed, Jan 20, 2016 at 11:17 AM, Eric E. Dolecki <email@hidden>
>> wrote:
>>
>>> 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
>>
>>
>>
_______________________________________________
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