Package processing.core
Class PGraphics.AsyncImageSaver
java.lang.Object
processing.core.PGraphics.AsyncImageSaver
- Enclosing class:
- PGraphics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitAsyncSaveCompletion(File file) voiddispose()getAvailableTarget(int requestedWidth, int requestedHeight, int format) After taking a target, you must call saveTargetAsync() or returnUnusedTarget(), otherwise one thread won't be able to runbooleanvoidreturnUnusedTarget(PImage target) voidsaveTargetAsync(PGraphics renderer, PImage target, File file)
-
Constructor Details
-
AsyncImageSaver
public AsyncImageSaver()
-
-
Method Details
-
dispose
public void dispose() -
hasAvailableTarget
public boolean hasAvailableTarget() -
getAvailableTarget
After taking a target, you must call saveTargetAsync() or returnUnusedTarget(), otherwise one thread won't be able to run -
returnUnusedTarget
-
saveTargetAsync
-
awaitAsyncSaveCompletion
-