Skip to main content
Module

x/targadactyl/mod.ts>TgaLoader#load

tga.js implemented in Deno
Latest
method TgaLoader.prototype.load
Re-export
import { TgaLoader } from "https://deno.land/x/targadactyl@1.2.0/mod.ts";

Parse Uint8ClampedArray of TGA data

Examples

Example 1

const tga = new TgaLoader();
const file = "./test.tga";
tga.load(
 await tga.open(file)
);

// TGA data has been initialized! 🍾

Parameters

data: Uint8ClampedArray

TGA data

Returns

Returns instance of self used for method chaining