Code and Data




convertToEPS.m





File: convertToEPS.m
Description: Converts an image file (gif, jpg, bmp, etc.) to EPS.
Author: Jeremy Kubica
Language: Matlab
Usage:
convertToEPS(FileName,FileType);

where "FileName" is the path and prefix of the file to convert and FileType is the file type. The EPS file is saved as FileName.eps. For example, to convert: "C:/temp/sample.jpg" you woud use

convertToEPS('C:/temp/sample','jpg');

The result would be the creation of the file "C:/temp/sample.eps". The origional file is not modified.

Additional Notes: To convert BMPs, the BMPs must be in 24 bit format.
Last Update: 12-08-2002





Return to the code page.