(AGK version: 108.16)
Submitted: 2013-08-06 10:20:49
Setvirtualresolution(640,480)
ResetTimer()

//Check that device has a camera
if GetCameraExists() = 1
    //show capture screen
    if ShowImageCaptureScreen() = 1
        //wait for image to be captured
        repeat
        until IsCapturingImage() = 0
        //Get Image
        id = GetCapturedImage()
        CreateSprite(1,id)
    else
    Print("No Response from camera")
    endif
else
Print("Camera not found")
endif

Repeat
    Sync()
Until Timer()>10
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.