(AGK version: 108.16)
Submitted: 2013-08-06 16:15:15
Setvirtualresolution(640,480)
ResetTimer()
//Create a Yellow Cross Image
swap()
Drawline(0,0,15,15,255,255,0)
Update(0)
Render()
Drawline(0,15,15,0,255,255,0)
Update(0)
Render()
GetImage(1,0,0,15,15)
//Save Image to File
SaveImage(1,"temp.png")
//Copy lefthand half of image to a new image
CopyImage(2,1,0,0,8,15)
//Create Sprite from the new image
CreateSprite(1,2)
//Magnify the sprite
SetSpriteScale(1,20,20)
Do
    Sync()
    If Timer()>10 Then Exit
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.