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#getDataURL

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

Gets TGA image as Base64-encoded data URL

Parameters

optional
type: "image/png" | "image/jpeg"

PNG or JPEG MIME type to use

Returns

string

Returns TGA image as base64-encoded data URI