(AGK version: 2.0.21)
Submitted: 2016-10-04 07:49:20
function ChooseFile()

	local spr

	ret$=ChooseRawFile("*.jpg;*.png")
	if ret$=""
		spr = CreateSprite(0)
	else

		spr = LoadSprite(ret$)

	endif

	SetSpriteDepth(spr,20)
	SetSpriteSize(spr,-1.0,GetVirtualHeight())
	SetSpritePosition(spr,0,0)

endfunction spr
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.