Function Reference


_WinAPI_CreateEmptyIcon

Creates a fully transparent icon with the specified width, height, and color depth

#include <WinAPIGdi.au3>
_WinAPI_CreateEmptyIcon ( $iWidth, $iHeight [, $iBitsPerPel = 32] )

Parameters

$iWidth The width, in pixels, of the icon.
$iHeight The height, in pixels, of the icon.
$iBitsPerPel [optional] The number of bits-per-pixel in the XOR bitmask of the icon. Default is 32.

Return Value

Success: Handle to the created icon.
Failure: 0 and sets the @error flag to non-zero.

Remarks

This function creates an icon with black XOR, and white AND bitmask bitmaps.
This icon has no alpha channel, it will be displayed only by using its AND bitmask.

When you are finished using the icon, destroy it using the _WinAPI_DestroyIcon() function.

Related

_WinAPI_DestroyIcon