SNAPSHOT

SNAPSHOT N,F

SAVES THE PICTURE OF THE SYSTEM OBJECT NUMBER N INTO THE FILE F

  • Type: Command
  • Parameters: 2
  • Group: System Objects

ACTION

The command SNAPSHOT N,F saves the picture of the system object designated by its number N into the file F.

The system object is of type : SCENE2D.

SYNTAX: SNAPSHOT N,F

  • N = system object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of system objects.
  • F = string expression, path of the file.

USE

  • The command SNAPSHOT is used to save the picture of a SCENE2D with its SPRITES.
  • The file is in "BMP" format (Bitmap).

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is not greater than 0.
  • If the system object number N does not exist.
  • If the system object number N is not of the type :SCENE2D.
  • If F is not a correct expression.

EXAMPLE

dim i%

scene2D 1

width 0,800:height 0,800

width 1,600:height 1,600

color 1,200,50,50

sprite 10

font_size 1,20

font_color 1,255,0,0

font_bold 1

sprite_text 10,"Panoramic"

snapshot 1,"save.bmp"

SEE ALSO

SPRITE

SCENE2D