Tuesday, 15 July 2014

cocoa - How to tell if a captured window is being displayed as retina in a retina display? -



cocoa - How to tell if a captured window is being displayed as retina in a retina display? -

if capture window using like...

cgimageref imageref = cgwindowlistcreateimage(cgrectnull, kcgwindowlistoptionincludingwindow, windowid, kcgwindowimageboundsignoreframing);

and window bounds like...

kcgwindowbounds = { height = 150; width = 490; x = 395; y = 174; };

if window on retina display kcgwindowbounds height reported 300 or 150 resultant captured image 300?

thanks in advance, 1 of things without @ retina display i'm not sure , think helpful on developers too...

ok, found reply using quartz-debug enable hidp modes, , dragged window onto screen hidp enabled.

the reply height / width of windows bounds same no matter if retina or not. captured image 2 times larger if beingness displayed on retina screen.

i expected case didnt want create assumptions.

cocoa retina-display

No comments:

Post a Comment