Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/packages/utilities/mod.ts>Image

Powerful machine learning, accelerated by WebGPU
Go to Latest
class Image
implements ImageData
Re-export
import { Image } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/mod.ts";

Constructors

new
Image(data: ImageOptions)

Properties

channels: number
colorSpace: "srgb" | "display-p3"
data: Uint8ClampedArray
height: number
readonly
pixels: number
width: number

Methods

getNthPixel(n: number):
[
number,
number,
number,
number,
]
getPixel(row: number, col: number): Pixel
setPixel(
row: number,
col: number,
unnamed 2: Pixel,
)
updatePixel(
row: number,
col: number,
color: Pixel,
)

Constructors

new
Image(data: ImageOptions)

Properties

channels: number
colorSpace: "srgb" | "display-p3"
data: Uint8ClampedArray
height: number
readonly
pixels: number
width: number

Methods

getNthPixel(n: number):
[
number,
number,
number,
number,
]
getPixel(row: number, col: number): Pixel
setPixel(
row: number,
col: number,
unnamed 2: Pixel,
)
updatePixel(
row: number,
col: number,
color: Pixel,
)