IrrSaveScreenshot

section index

## NAME

IrrSaveScreenshot - Saves the Scene as Image

## SYNOPSIS

IrrSaveScreenshot(filename.s)

## INPUTS

filename.s | - | Filename for the Picture to save

## FUNCTION

Save an image created from the last rendered frame.

## RESULT

nothing

## EXAMPLE

             If IrrStart( #IRR_EDT_OPENGL, screen_width, screen_height, #True, #True, #False ) = #True
               While( IrrRunning())
                 IrrBeginScene(#True,#True,0,0,0)
                   .... Do something
                 IrrEndScene()
                 fps.l = IrrGetFPS()
                 primitives.l = IrrGetPrimitivesDrawn()
                 IrrSetWindowCaption("FPS:"+Str(fps)+" Primitives:"+Str(primitives))
                 If (...)
                   IrrSaveScreenshot("test.bmp")
                 Endif
               Wend
               IrrStop()
             EndIf

## NOTES