writeFrame
Writes a single frame to the GIF. 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.
Parameters
The ARGB pixel data for the frame. Each element in the array represents a pixel in ARGB format, going row by row from top to bottom.
The width of the frame in pixels.
The height of the frame in pixels.
The duration of the frame.
Throws
If an I/O error occurs.
Writes a single frame to the GIF. 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.
Parameters
The ImageFrame containing the argb data, dimensions, and duration of the frame.
Throws
If an I/O error occurs.