Skip to main content
Latest
method TgaLoader.prototype.getImageData8bits
Re-export
import { TgaLoader } from "https://deno.land/x/targadactyl@1.2.0/mod.ts";

Copy image data from 8 bit RGB TGA file

Parameters

imageData: Uint8ClampedArray

Canvas data container

indexes: Uint8ClampedArray

TGA image data color indexes

colorMap: Uint8ClampedArray

Color map data

width: number

Image width

yStart: number

Y-axis start position of pixel data to copy

yStep: number

The number of pixels offset per iteration over the Y-axis

yEnd: number

Y-axis end position of pixel data to copy

xStart: number

X-axis start position of pixel data to copy

xStep: number

The number of pixels offset per iteration over the X-axis

xEnd: number

X-axis end position of pixel data to copy

Returns

Uint8ClampedArray

Image data copied from TGA file