← back to roto on ba3a.dev

ExportPreparation

What every AnimationEncoder does to its frames before writing them: background, then scale.

Functions

Link copied to clipboard

frames as new rasters. With a background in options, a pixel with alpha under 128 becomes that colour and every other pixel becomes opaque; without one, pixels are unchanged. Each frame is then enlarged through NearestScale, which refuses a result that is too large. frames is not changed.