writeFrameFuture
Writes a single frame to the GIF asynchronously. The frame may be skipped if the duration is below minimumFrameDurationCentiseconds, or if the frame is the same as or similar enough to the previous frame, determined by colorDifferenceTolerance, quantizedColorDifferenceTolerance, and colorSimilarityChecker.
Return
A CompletableFuture that completes when the frame has been submitted for encoding. The future will complete exceptionally with an Exception if an error occurs.
Parameters
The Bitmap containing the pixel data of the frame.
The duration of the frame.
Writes a single frame to the GIF asynchronously. The frame may be skipped if the duration is below minimumFrameDurationCentiseconds, or if the frame is the same as or similar enough to the previous frame, determined by colorDifferenceTolerance, quantizedColorDifferenceTolerance, and colorSimilarityChecker.
Return
A CompletableFuture that completes when the frame has been submitted for encoding. The future will complete exceptionally with an Exception if an error occurs.
Parameters
The BufferedImage containing the pixel data of the frame.
The duration of the frame.