FileSelectFile, File1, , , Select File 1
FileSelectFile, File2, , , Select File 2
WindowSize := (A_ScreenWidth / 3) - 20
Gui, 1:+AlwaysOnTop +ToolWindow +LastFound
Gui, 1: Add, Pic, x0 y0, %File1%
Gui, 1:Show,% "y0 h" . WindowSize . " w" . WindowSize, Differences
hGui1 := WinExist()
WinSet, Trans, 255
Gui, 2:+AlwaysOnTop +ToolWindow +LastFound
Gui, 2: Add, Pic, x0 y0, %File1%
Gui, 2:Show,% "y0 x0 h" . WindowSize . " w" . WindowSize, File 1
hGui2 := WinExist()
WinSet, Trans, 255
Gui, 3:+AlwaysOnTop +ToolWindow +LastFound
Gui, 3: Add, Pic, x0 y0, %File2%
Gui, 3:Show,% "y0 x" . A_ScreenWidth - WindowSize - 10. "h" . WindowSize . " w" . WindowSize, File 2
hGui3 := WinExist()
WinSet, Trans, 255
hDc1 := DllCall("GetDC", "uint", hGui1)
hDc2 := DllCall("GetDC", "uint", hGui3)
DllCall("gdi32.dll\BitBlt", UInt,hDC1, Int, 0, Int, 0, Int, WindowSize, Int, WindowSize, UInt,hDC2, Int, 0, Int, 0, UInt, SRCINVERT := 0x660046)
DllCall("gdi32.dll\ReleaseDC", UInt,hGui1,UInt,hDC1)
DllCall("gdi32.dll\ReleaseDC", UInt,hGui2,UInt,hDC2)
return
3GuiClose:
2GuiClose:
GuiClose:
ExitApp
и он действительно может наглядно показать разницу, но хотелось бы в цифровом виде ее получить...