Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dwm/mod.ts>DwmWindow#setIcon

Deno Window Manager: Cross-platform window creation and management
Go to Latest
method DwmWindow.prototype.setIcon
Re-export
import { DwmWindow } from "https://deno.land/x/dwm@0.3.2/mod.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