Skip to main content
Module

x/imagescript/ImageScript.js>Frame

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
class Frame
extends Image
import { Frame } from "https://deno.land/x/imagescript@1.2.15/ImageScript.js";

Represents a frame in a GIF

Constructors

new
Frame(
width,
height,
duration?,
xOffset?,
yOffset?,
disposalMode?,
)

Creates a new, blank frame

Methods

resize(
width,
height,
mode?,
)

Static Properties

readonly
DISPOSAL_BACKGROUND

GIF frame disposal mode BACKGROUND. For use with Frame

readonly
DISPOSAL_KEEP

GIF frame disposal mode KEEP. For use with Frame

readonly
DISPOSAL_PREVIOUS

GIF frame disposal mode PREVIOUS. For use with Frame

Static Methods

from(
image,
duration,
xOffset,
yOffset,
disposalMode?,
)

Converts an Image instance to a Frame, cloning it in the process