import { default } from "https://deno.land/x/imagescript@1.3.0/v2/framebuffer.d.ts";
Constructors
Properties
private
readonly
view: DataViewMethods
at(x: number, y: number): Uint8Array
blur(type: "cubic"): this
blur(type: "box", radius: number): this
blur(type: "gaussian", radius: number): this
clone(): framebuffer
crop(type: "circle", feathering?: number): this
crop(): this
type: "box",
x: number,
y: number,
width: number,
height: number,
cut(type: "circle", feathering?: number): this
cut(): this
type: "box",
x: number,
y: number,
width: number,
height: number,
encode(format: "png", options?: { compression?: ; }): Uint8Array
| "none"
| "fast"
| "best"
| "default"
fill(rgba: rgba): this
fill(color: number): this
fill(cb: (x: number, y: number) => number): this
flip(type: "vertical" | "horizontal"): this
get(x: number, y: number): number
overlay(): this
frame: this,
x?: number,
y?: number,
pixels(type?: "int"): Generator<[number, number, number], [number, number, number]>
pixels(type: "rgba"): Generator<[number, number, Uint8Array], [number, number, Uint8Array]>
replace(): this
frame: this,
x?: number,
y?: number,
resize(): this
type: "cubic" | "linear" | "nearest",
width: number,
height: number,
rotate(deg: number, resize?: boolean): this
scale(type: "cubic" | "linear" | "nearest", factor: number): this
set(): void
x: number,
y: number,
color: number,
swap(old: rgba, color: rgba): this
swap(old: number, color: number): this
toJSON(): { width: number; height: number; buffer: number[]; }
toString(): string
[Symbol.iterator](): Generator<[number, number], [number, number]>
Static Methods
decode(format: "png", buffer: BufferSource): framebuffer
from(framebuffer: { width: number; height: number; u8?: BufferSource; buffer?: BufferSource; }): framebuffer