Create screenshot folder it it does not yet exist
This commit is contained in:
@@ -43,6 +43,7 @@ public class ScreenshotWriter implements FrameConsumer<RGBFrame> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
outputFile.getParentFile().mkdirs();
|
||||||
ImageIO.write(img, "PNG", outputFile);
|
ImageIO.write(img, "PNG", outputFile);
|
||||||
} catch (OutOfMemoryError e) {
|
} catch (OutOfMemoryError e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user