Code: Select all
Pics := []
Pics.Push(LoadPicture("1.jpg","w500 h-1"))
Pics.Push(LoadPicture("2.jpg","w400 h-1"))
;pic1's w:h is 1:1
;pic2's w:h is 3:2
;first display pic1,then display pic2, w:h still 1:1
Gui, Add, Pic, vPic1 +Border, % "HBITMAP:*" Pics[1]
Gui, Show, w1000 h500
Sleep, 3000
GuiControl, , Pic1, % "HBITMAP:*" Pics[2]
return
GuiClose:
GuiEscape:
ExitApp
return