Window.SetIcon Method

SFML.Net

WindowSetIcon Method
Change the window's icon

Namespace: SFML.Window
Assembly: sfmlnet-window-2 (in sfmlnet-window-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public virtual void SetIcon(
	uint width,
	uint height,
	byte[] pixels
)
Public Overridable Sub SetIcon ( 
	width As UInteger,
	height As UInteger,
	pixels As Byte()
)
public:
virtual void SetIcon(
	unsigned int width, 
	unsigned int height, 
	array<unsigned char>^ pixels
)
abstract SetIcon : 
        width : uint32 * 
        height : uint32 * 
        pixels : byte[] -> unit 
override SetIcon : 
        width : uint32 * 
        height : uint32 * 
        pixels : byte[] -> unit 

Parameters

width
Type: SystemUInt32
Icon's width, in pixels
height
Type: SystemUInt32
Icon's height, in pixels
pixels
Type: SystemByte
Array of pixels, format must be RGBA 32 bits
See Also