DEF FNDplot_f_save_as(INTEGER Doc_num,File_path$,Filetype$, OPTIONAL INTEGER W,H, Colors,Flags, INTEGER Verbose)
!
! Saves current file (DPlot macro function "FileSaveAs")
!
! INPUT: Doc_num = Document number of open DPlot document to be saved
! File_path$ = Fully qualified path to file
! Filetype$ = Type of file
!
! Type Description Extension
! -----------------------------------------------------------
! "1": DPLOT Files ".GRF"
! "2": ASCII (1 curve only) ".ASC"
! "4": Comma-separated values ".CSV"
! "5": Unformatted binary ".BIN"
! "14": Tab-separated values ".TXT"
! "15": Compressed DPlot ".GRFZ"
! "4096": Windows Metafile ".WMF"
! "4097": Enhanced Metafile ".EMF"
! "BMP": BMP Picture ".BMP"
! "GIF": Graphics Interchange Format ".GIF"
! "JPG": JPEG Picture ".JPG"
! "PNG": Portable Network Graphics ".PNG"
! "TIF": Tagged Image File Format ".TIF"
! "WAV": WAV Audio ".WAV"
!
! W = Width of picture in pixel
! H = Height of picture in pixel
! Colors = Number of colors (8 = 256 colors, 24 = 16 million colors)
! Flags = Several flags
! 1: Crop white space