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

x/dwm/src/core/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/src/core/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