Re: device-pixel-exact bitmap rendering

2016-12-19 Thread Sandy McGuffog
Having been down this rat hole once or twice for my apps, I can only tell you my understanding. Which may or may not have any bearing on reality: If you select a “non-native" display mode, then the display/display driver are responsible for the conversion from the selected resolution to native

Re: device-pixel-exact bitmap rendering

2016-12-18 Thread Kurt Bigler
On 12/18/16 12:33:53 PM, Ken Thomases wrote: On Dec 18, 2016, at 2:15 AM, Kurt Bigler wrote: But if in Displays I set the resolution to 1920x1200 "More Space", then I can't get the backing store to match the 2880x1800 physical display resolution. I need my NSView's backing store scale facto

Re: device-pixel-exact bitmap rendering

2016-12-18 Thread Quincey Morris
On Dec 18, 2016, at 12:33 , Ken Thomases wrote: > > How did you draw it? It may also be that “drawRect” is not the correct approach, even with “wantsLayer”. As I understand it, there are in general *two* copyings (with two possible scalings) of images drawn in a view. One copies the image into

Re: device-pixel-exact bitmap rendering

2016-12-18 Thread Ken Thomases
On Dec 18, 2016, at 2:15 AM, Kurt Bigler wrote: > > But if in Displays I set the resolution to 1920x1200 "More Space", then I > can't get the backing store to match the 2880x1800 physical display > resolution. I need my NSView's backing store scale factor to be 1.5, but the > doc says this is

device-pixel-exact bitmap rendering

2016-12-18 Thread Kurt Bigler
or 2.0 restriction is a problem for the basic requirement of device-pixel-exact bitmap rendering. Although I know I need to embrace the abstractions fully, I'd appreciate feedback with priority to nuts-and-bolts. The abstraction in which the doc is buried has seemed a little unhelpful in