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
Post a Comment