objective c - ScreenCapture on OS X Retina -


i trying screen capture on os x. solution works on macbook pro. facing problems on retina displays.

i try current resolution using cgdisplaypixelshigh/cgdisplaypixelswide. returns correct resolution (the 1 see in preferences) on retina image returned cgdisplaycreateimage gives image of double resolution.

this code using

int activedisplay; size_t screenx, screeny;  activedisplay = cgmaindisplayid(); screeny = cgdisplaypixelshigh(activedisplay); screenx = cgdisplaypixelswide(activedisplay);  cgimageref image = cgdisplaycreateimage(activedisplay); 

is there way capture image of resolution seeing in preferences in retina displays? can 1 explain why happening?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -