Skip to main content
Module

x/imagescript/mod.ts>Frame.from

zero-dependency JavaScript image manipulation
Extremely Popular
Go to Latest
method Frame.from
import { Frame } from "https://deno.land/x/imagescript@1.2.15/mod.ts";

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

Parameters

image

The image to create the frame from

duration

The frames duration (in ms)

xOffset

The frames offset on the x-axis

yOffset

The frames offset on the y-axis

optional
disposalMode = [UNSUPPORTED]

The frames disposal mode