Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/targadactyl/src/tga.ts>TgaLoader#decodeRLE

tga.js implemented in Deno
Latest
method TgaLoader.prototype.decodeRLE
import { TgaLoader } from "https://deno.land/x/targadactyl@1.2.0/src/tga.ts";

Decode compressed TGA file

Parameters

data: Uint8ClampedArray

TGA image data

offset: number

Byte index offset for compression decoding

pixelSize: number

Input image size

outputSize: number

Output image size

Returns

Uint8ClampedArray

Decoded compressed TGA data