RenderWindow.setIcon

Change the window's icon.

pixels must be an array of width x height pixels in 32-bits RGBA format.

The OS default icon is used by default.

class RenderWindow
override
void
setIcon
(
uint width
,
uint height
,
const(ubyte[]) pixels
)

Parameters

width uint

Icon's width, in pixels

height uint

Icon's height, in pixels

pixels const(ubyte[])

Icon pixel array to load from

Meta