start method

void start(
  1. int frameCount
)

Start encoding a PNG.

Call this method once before calling addFrame.

Implementation

void start(int frameCount) {
  _frames = frameCount;
  isAnimated = frameCount > 1;
}