Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-25 Thread Steve Christensen
> On Aug 24, 2016, at 8:37 PM, Jeff Szuhay wrote: > > >> On Aug 24, 2016, at 8:02 PM, Britt Durbrow >> wrote: >> >> >>> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay wrote: >>> >>> I draw my images (clocks) into a

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 8:02 PM, Britt Durbrow > wrote: > > >> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay wrote: >> >> I draw my images (clocks) into a “reference” sized rectangle—for simplified >> position calculations—and then have

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Britt Durbrow
> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay wrote: > > I draw my images (clocks) into a “reference” sized rectangle—for simplified > position calculations—and then have CoreGraphics scale into the destination > view rect. Don’t do that with bitmap scaling. It’s wasteful, and

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 12:59 PM, Jeff Szuhay wrote: > > >> On Aug 24, 2016, at 10:37 AM, Jean-Daniel Dupas > > wrote: >> >>> Moreover, the performance will greatly depends the sampling algorithm you >>> choose. CGImage

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
> On Aug 24, 2016, at 10:37 AM, Jean-Daniel Dupas wrote: > >> Moreover, the performance will greatly depends the sampling algorithm you >> choose. CGImage provide a couple of algorithms with different tradeoff (see >> CGContextSetInterpolationQuality() and NSImage and

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jean-Daniel Dupas
> Le 24 août 2016 à 19:33, Jean-Daniel Dupas a écrit : > >> >> Le 24 août 2016 à 18:50, David Duncan a écrit : >> >> >>> On Aug 24, 2016, at 1:23 AM, Jeff Szuhay wrote: >>> >>> I’m using a bunch of layers to draw images to,

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jean-Daniel Dupas
> Le 24 août 2016 à 18:50, David Duncan a écrit : > > >> On Aug 24, 2016, at 1:23 AM, Jeff Szuhay wrote: >> >> I’m using a bunch of layers to draw images to, compose them, and then draw >> into a viewRect >> with >> >>

Re: Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread David Duncan
> On Aug 24, 2016, at 1:23 AM, Jeff Szuhay wrote: > > I’m using a bunch of layers to draw images to, compose them, and then draw > into a viewRect > with > > CGContextDrawLayerInRect( viewContext, viewRect, myLayer); > > Of course, I’m trying to pick the most

Core Graphics: Is it better to up-sample or down-sample images when drawing into a rect?

2016-08-24 Thread Jeff Szuhay
I’m using a bunch of layers to draw images to, compose them, and then draw into a viewRect with CGContextDrawLayerInRect( viewContext, viewRect, myLayer); Of course, I’m trying to pick the most reasonable size for my layers. I currently use 1024x1024 but could easily make them 512x512