Using the Surfer Scripter, how do I set the width and height of an exported bitmap (TIF, BMP, PCX, JPG) with Export2?

This article describes how to set the width and height of an exported bitmap image via Surfer Scripter.

Since the Export Options dialog isn't displayed when the program is driven from an automation script, an options string can be specified in the script. The string consists of comma-separated parameters, which specify the behavior of the various export options. A typical example when exporting an image would be:


Plot.Export2(FileName:= SurferApp.Path+"\Samples\demogrid.tif", Options:="Width=717, Height=949, KeepAspect=0”)


This would set all export the image width to 717 pixels, the image height to 949 pixels and to not keep the aspect ratio.


All the available options for exporting images are listed in the Help on the Image (Bitmap) Export Automation Options page.


Updated November 2, 2018

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.