CGDisplayCreateImageForRect

Function CGDisplayCreateImageForRect 

Source
pub extern "C-unwind" fn CGDisplayCreateImageForRect(
    display: CGDirectDisplayID,
    rect: CGRect,
) -> Option<CFRetained<CGImage>>
👎Deprecated: Please use ScreenCaptureKit instead.
Available on crate features CGDirectDisplay and CGImage only.