- java.lang.Object
-
- processing.core.PGraphics.AsyncImageSaver
-
-
Constructor Summary
Constructors Constructor Description AsyncImageSaver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidawaitAsyncSaveCompletion(File file)voiddispose()PImagegetAvailableTarget(int requestedWidth, int requestedHeight, int format)After taking a target, you must call saveTargetAsync() or returnUnusedTarget(), otherwise one thread won't be able to runbooleanhasAvailableTarget()voidreturnUnusedTarget(PImage target)voidsaveTargetAsync(PGraphics renderer, PImage target, File file)
-
-
-
Method Detail
-
dispose
public void dispose()
-
hasAvailableTarget
public boolean hasAvailableTarget()
-
getAvailableTarget
public PImage 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 run
-
returnUnusedTarget
public void returnUnusedTarget(PImage target)
-
awaitAsyncSaveCompletion
public void awaitAsyncSaveCompletion(File file)
-
-