Skip to main content

MaaControllerPostScreencap

Function MaaControllerPostScreencap 

Source
pub unsafe extern "C" fn MaaControllerPostScreencap(
    ctrl: *mut MaaController,
) -> MaaCtrlId
Expand description

@brief Post a screenshot request to the controller.

@param ctrl The controller handle. @return The control id of the screenshot action.

@note The screenshot image is scaled according to the screenshot target size settings (long side / short side). Use MaaControllerGetResolution to get the raw (unscaled) device resolution. @see MaaControllerCachedImage, MaaControllerSetOption, MaaControllerGetResolution