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
Type: uint

Icon's width, in pixels

height
Type: uint

Icon's height, in pixels

pixels
Type: const(ubyte[])

Icon pixel array to load from

Meta