Photo>Graphics supports a large number of bitmap formats.
You will note that you cannot load PostScript .PS files or Encapsulated PostScript .EPS files. They can only be used to save the output.
When saving bitmaps you have the option of specifying any number of options depending on the specific bitmap format chosen.
The bitmap format is chosen by the file extension on the saved file name (ie: SAMP.BMP saves as BITMAP, SAMP.TIF saves as TIFF).
If you supply no options the defaults are used. If any option is provided that is not relevant to that file format, it is ignored.
Options are separated by : (colons) or ; (semi-colons) or , (commas). Options with 1 or 0 values may simply entered without a value to activate.
Examples:
call CwExportRendered 'c:\images\quux.jpg', 'progressive=1:quality=80' call CwExportRendered 'c:\images\quux2.jpg', 'progressive' call CwExportRendered 'c:\images\baz.gif, 'transparent:transparent color=(255,255,255)' call CwExportRendered 'c:\images\bobo.tiff', ''
In the above:
progressive=1 and progressive
have the exact same meaning.
The options are:
Format | Option | Possible Values |
---|---|---|
GIF | Interlaced | 1, 0 (1 = yes, 0 = no, No value = yes) |
Transparent | 1, 0 | |
Transparent Color | Any color reference. ie:(255,255,255) | |
Netscape palette | 1, 0 | |
Color depth |
"256 color" "16 color" |
|
JPG | Progressive | 1, 0 |
Quality | 1 ... 100 | |
PCX | Color depth |
"24-bit color" "256 color" "16 color" "B&W" |
BMP | Color depth |
"32-bit color" "24-bit color" "256 color" "16 color" "B&W" |
Compression | 1, 0 | |
Version |
"OS/2" "Windows 3.x" "Windows 95" "Windows NT" |
|
PNG | Interlaced | 1, 0 |
Color depth |
"24-bit color" "16-bit color" "256 color" |
|
PSD | Compression | 1, 0 |
Color depth |
"24-bit color" "256 color" "B&W" |
|
TGA | Color depth |
"32-bit color" "24-bit color" "16-bit color" "256 color" |
TIF | Compression |
"None" "PackBits" "LZW" |
Flavor |
"Intel Encoding" "Machintosh Encoding" |
|
Color depth |
"24-bit color" "256 color" "B&W" |
|
PPM/PBM/PGM | Encoding |
"binary" "ascii" |
EPS | Preview | 1 = yes, 0 = no |
Object Properties |
Index |
Samples |