Tv SaveMode

From TVPaintWiki
Revision as of 21:13, 16 December 2009 by Madsjuul (Talk | contribs) (Format Options)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<<<George<<<Command Reference<<<File Management

tv_SaveMode format [options]

Selects a save format and the options for this format, if any. The format argument indicates the save format. The following values are available for the different formats:

   AVI : "AVI"
   Cineon : "CIN"
   Deep : "DEEP", "AURA" or "DIP"
   FLC : "FLIC", "FLC" or "FLI"
   GIF : "GIF"
   BMP : "WINDOWS" or "BMP"
   ILBM : "ILBM", "LBM" or "IFF"
   JPEG : "JPEG", "JPG" or "JIF"
   PCX "PCX"
   PNG : "PNG"
   PSD : "PSD" , "PHOTOSHOP"
   QuickTime : "QT"
   Quantel VPB : "VPB"
   RTV : "RTV"
   SGI Image : "SGI IMAGE" or "SGI"
   SoftImage : "SOFTIMAGE" or "PIC"
   Sun Raster : "SUNRASTER", "SUN" or "RAS"
   Targa : "TARGA", "TGA" or "VST"
   TIFF : "TIFF"


Format Options

AVI, Cineon, Deep, PNG, PSD, QuickTime, Quantel, SGI Image, SoftImage and Tiff

no options.

FLC, GIF, PCX

the available options are colors palette dither. color is between 16 and 256 and represents the number of colors in the palette for the image. palette indicates the palette type ("FIX" for a preset palette, "USER" for the user palette, "GLOBAL" for a global quantized palette and "LOCAL" for a local quantized palette). dither indicates the dither type ("NODITHER" for no dither, "DITHER" for Floyd-Steinberg dither and "MAT" for a standard dither).

BMP, ILBM

the available options are colors palette dither. color is between 16 and 256 and represents the number of colors in the palette for the image. If it is not specified, a 24-bit palette will be used and the other options will be ignored. palette indicates the palette type ("FIX" for a preset palette, "USER" for the user palette, and "GLOBAL" for a global quantized palette). dither indicates the dither type ("NODITHER" for no dither, "DITHER" for Floyd-Steinberg dither and "MAT" for a standard dither).

JPEG

the only available option is the quality-factor, which will have a value of between 1 and 100.

Sun Raster

the only available option is "32". By default, the save will be done in 24 bits. If you choose this option, it will be done in 32 bits.

Targa

the available option are "NONE" (or "0") for non-compressed Targa (Default) or "1" for compressed Targa.


Note that the format and options specified with the tv_SaveMode command are used by the tv_SaveBrush, tv_SaveBrushAnim, tv_SaveDisplay, tv_SaveImage and tv_SaveSequence commands. This command returns a string with the previous format.