You made some mistakes. Try this:
 
#include <GDIplus.au3>
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
_GDIPlus_Startup()
Global $myImage = "https://www.autoitscript.com/forum/uploads/profile/photo-thumb-29844.png"
Global $hBMPMem = _GDIPlus_BitmapCreateFromMemory(InetRead($myImage)) ;use GDI+ bitmap format!!!
Global $hAttribute_Transparent_BMP = _GDIPlus_AttributeCreateTransparentBitmap($hBMPMem, 0.66666)
Global $hGDIBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hAttribute_Transparent_BMP, 0xFFFFFFFF)
Global $hGUI = GUICreate("", 300, 300, -1, -1)
GUICtrlCreateTab(0,0,300,300)
GUICtrlCreateTabItem("Test")
Global $iPic = GUICtrlCreatePic("", 50, 50)
_WinAPI_DeleteObject(GUICtrlSendMsg($iPic, 0x0172, 0, $hGDIBitmap)) ; $STM_SETIMAGE
;~ _WinAPI_DeleteObject(GUICtrlSendMsg($iPic, 0x0172, 0, $hBMPMem)) ; $STM_SETIMAGE
GUICtrlCreateTabItem(""); end tabitem definition
GUICtrlCreateTabItem("Test2")
GUICtrlCreateTabItem(""); end tabitem definition
GUISetState()
Do
    Switch GUIGetMsg()
		Case $GUI_EVENT_CLOSE
			_GDIPlus_ImageDispose($hBMPMem)
			_GDIPlus_ImageDispose($hAttribute_Transparent_BMP)
            _WinAPI_DeleteObject($hGDIBitmap)
            _GDIPlus_Shutdown()
            GUIDelete()
            Exit
    EndSwitch
Until False
Func _GDIPlus_AttributeCreateTransparentBitmap($hImage, $fTransparency = 0.25)
    Local Const $hAttribute_Alpha = _GDIPlus_ImageAttributesCreate()
;~     $fTransparency = $fTransparency > 1 ? 1 : $fTransparency < 0 ? 0 : $fTransparency
    Local $tColorMatrix = _GDIPlus_ColorMatrixCreateTranslate(0, 0, 0, $fTransparency * -1)
    Local Const $pColorMatrix = DllStructGetPtr($tColorMatrix)
    _GDIPlus_ImageAttributesSetColorMatrix($hAttribute_Alpha, 0, True, $pColorMatrix)
	Local $aDim = _GDIPlus_ImageGetDimension($hImage)
	Local Const $aBitmap = _GDIPlus_BitmapCreateFromScan0($aDim[0], $aDim[1])
	Local Const $hGfx = _GDIPlus_ImageGetGraphicsContext($aBitmap)
	_GDIPlus_GraphicsDrawImageRectRect($hGfx, $hImage, 0, 0, $aDim[0], $aDim[1], 0, 0, $aDim[0], $aDim[1], $hAttribute_Alpha)
	_GDIPlus_GraphicsDispose($hGfx)
	_GDIPlus_ImageAttributesDispose($hAttribute_Alpha)
    Return $aBitmap
EndFunc