Skip to main content
Module

x/caviar/deps.ts>DwmWindow#setIcon

⚡ Blazing fast, modern, Game Engine powered by WebGPU for Deno and the browser
Latest
method DwmWindow.prototype.setIcon
Re-export
import { DwmWindow } from "https://deno.land/x/caviar@2.6.7/deps.ts";

Sets the window icon to a custom icon

import { decode } from "https://deno.land/x/pngs@0.1.1/mod.ts";

win.setIcon(decode(await Deno.readFile("./path/to/icon/icon.png")));

Parameters

image: Uint8Array
sizes: Size