(AGK version: 108.16)
Submitted: 2013-08-06 16:02:20
Setvirtualresolution(640,480)
ResetTimer()
//Create a Green Cross Image
swap()
Drawline(0,0,15,15,0,255,0)
Update(0)
Render()
Drawline(0,15,15,0,0,255,0)
Update(0)
Render()
GetImage(1,0,0,15,15)
//Save Image to File
SaveImage(1,"temp.png")
//Load Image from File
LoadImage(2,"temp.png")
//Create Sprite from Image
CreateSprite(1,2)
Do
    Sync()
    If Timer()>10
        //Delete Image after 10 seconds
        DeleteImage(2)
        Exit
    EndIf
Loop
End
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.