:
Size: a a a
В
:
В
В
s
S
Func _SetImage($i_Pic, $sPNGFile)
$iPic = GUICtrlGetHandle($i_Pic)
_GDIPlus_Startup()
Local $hImage = _GDIPlus_ImageLoadFromFile($sPNGFile)
Local $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage)
GUICtrlSetImage($i_Pic,'')
_WinAPI_DeleteObject(_SendMessage($iPic, 0x0172, 0, $hBitmap))
_WinAPI_DeleteObject($hBitmap)
_GDIPlus_ImageDispose($hImage)
_GDIPlus_Shutdown()
_WinAPI_RedrawWindow($iPic)
EndFunc ;==>UsePNGImageDecoder
This function will integrate PNG to GUI, worked perfectly but after minimizing and restore window (from taskbar) all images in GUI are mixed (screenshot will attached) p.s. WinAPI and GDI+ includedD
Func _SetImage($i_Pic, $sPNGFile)
$iPic = GUICtrlGetHandle($i_Pic)
_GDIPlus_Startup()
Local $hImage = _GDIPlus_ImageLoadFromFile($sPNGFile)
Local $hBitmap = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hImage)
GUICtrlSetImage($i_Pic,'')
_WinAPI_DeleteObject(_SendMessage($iPic, 0x0172, 0, $hBitmap))
_WinAPI_DeleteObject($hBitmap)
_GDIPlus_ImageDispose($hImage)
_GDIPlus_Shutdown()
_WinAPI_RedrawWindow($iPic)
EndFunc ;==>UsePNGImageDecoder
This function will integrate PNG to GUI, worked perfectly but after minimizing and restore window (from taskbar) all images in GUI are mixed (screenshot will attached) p.s. WinAPI and GDI+ includedS
В
S
D
S
S