win32gui.LoadImage

HANDLE = LoadImage(hinst, name , type , cxDesired , cyDesired , fuLoad )

Loads a bitmap, cursor or icon

Parameters

hinst : int

Handle to an instance of the module that contains the image to be loaded. To load an OEM image, set this parameter to zero.

name : int/string

Specifies the image to load. If the hInst parameter is non-zero and the fuLoad parameter omits LR_LOADFROMFILE, name specifies the image resource in the hInst module. If the image resource is to be loaded by name, the name parameter is a string that contains the name of the image resource.

type : int

Specifies the type of image to be loaded.

cxDesired : int

Specifies the width, in pixels, of the icon or cursor. If this parameter is zero and the fuLoad parameter is LR_DEFAULTSIZE, the function uses the SM_CXICON or SM_CXCURSOR system metric value to set the width. If this parameter is zero and LR_DEFAULTSIZE is not used, the function uses the actual resource width.

cyDesired : int

Specifies the height, in pixels, of the icon or cursor. If this parameter is zero and the fuLoad parameter is LR_DEFAULTSIZE, the function uses the SM_CYICON or SM_CYCURSOR system metric value to set the height. If this parameter is zero and LR_DEFAULTSIZE is not used, the function uses the actual resource height.

fuLoad : int