Search in sources :

Example 1 with ImageWrapper

use of com.stardust.autojs.core.image.ImageWrapper in project Auto.js by hyb1996.

the class Images method captureScreen.

@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public boolean captureScreen(String path) {
    path = mScriptRuntime.files.path(path);
    ImageWrapper image = captureScreen();
    if (image != null) {
        saveImage(image, path);
        return true;
    }
    return false;
}
Also used : ImageWrapper(com.stardust.autojs.core.image.ImageWrapper) RequiresApi(android.support.annotation.RequiresApi)

Aggregations

RequiresApi (android.support.annotation.RequiresApi)1 ImageWrapper (com.stardust.autojs.core.image.ImageWrapper)1