epspreview
Add/remove TIFF preview to EPS file.
Contents
Syntax
epspreview(epsfile) epspreview(epsfile, outfile) epspreview(epsfile, '--Remove') epspreview(..., 'Param1', Value1, 'Param2', Value2,...)
Description
epspreview(epsfile) adds TIFF preview to the EPS file specified by the string epsfile. If '.eps' extension is missing, it will automatically append the extension. The default resolution of the TIFF preview image resolution is 96 dots per inch.
epspreview(epsfile, outfile) saves the modified EPS data to a file specified by the string outfile.
epspreview(..., '--Remove') removes the existing TIFF preview image from the EPS file. All other optional parameters are ignored.
epspreview(..., 'Param1', Value1, 'Param2', Value2,...) can be used to set parameters for the TIFF image quality.
Parameters
The following table lists the available optional parameters.
Option |
Value |
Description |
---|---|---|
Resolution |
a scalar or 2-element vector of positive integers {[96]} |
A two-element vector containing the XResolution and YResolution, or a scalar indicating both resolutions. The units are specified in pixels per inch. |
TextAlphaBits |
0, 1, 2, 3, {4} |
The number of bits for text antialiasing; The value of 4 should be given for optimum output, but smaller values can be used for faster rendering. |
GraphicsAlphaBits |
0, 1, 2, 3, {4} |
The number of bits for graphics antialiasing; The value of 4 should be given for optimum output, but smaller values can be used for faster rendering. |
ColorSpace |
{'color'} | 'gray' | 'mono' |
  |
BitDepth |
12, {24}, 32, 48, 64 |
Only relevant for ColorSpace = 'color'. If BitDepth = 12, 24, or 48, the image is encoded in RGB space while BitDepth = 32 or 64, it results in a CMYK image. |
Compression |
'none', 'crle', 'g3', 'g4', 'lzw', {'pack'} |
  |
See Also
Copyright 2012. Takeshi Ikuma. All rights reserved.