Soon, we will launch a new and updated customer portal, which is an important step toward providing our customers with one place to learn, interact, and get help.
Learn more.

Improved Graphic Export

This article discusses the improved Graphic Export for Layout, 1D and 2D plots for ZOS 18.7.
Michael Humphreys
08/13/2018
OpticStudio

Improved Graphic Export

OpticStudio 18.7 has improved graphic export for layout and analysis windows.  The graphic export can be accessed by clicking the purple save icon in the analysis window. 


Vector graphic export for supported windows can be access by selecting the SVG file extension from the Save as type option.  Custom high-resolution raster export can be accessed by selecting the JPEG/BMP/PNG file extension and clicking the Settings… button. 


A new window will appear which will allow the user to check the Use Custom Output Resolution box.  Then the user can specify the number of pixels in either the x (width) or y (height) direction.  The aspect ratio for the current window will be maintained for the current window and the opposite dimension will be automatically scaled to maintain this ratio.

Understanding the graphic export in OpticStudio 18.7

OpticStudio 18.7 includes several improvements to the on-screen display, as well as enhancements to saving, copying, and printing display and analysis windows.  The on-screen display improvements were designed to mimic the on-screen display windows in OpticStudio 18.4, so you are unlikely to notice any significant differences.  The saving, copying, and printing functionality, referred to in this article as “graphic export,” has been greatly improved. Most windows operate the same way, enabling you to export either a high-resolution raster image (such as a JPEG) or a scalable vector graphic image (such as an SVG). Although the graphic export feature was developed primarily as a single-click operation, there are some considerations outlined below.

Graphic export considerations

2D plots – The Show As surface cannot be exported as a vector SVG file; this view can still be exported as a high-resolution raster image with a custom size.
Analysis Window toolbar – Print quality from this toolbar is lower than copying and pasting images into a Word or PowerPoint file and printing the pasted image. If printing directly from OpticStudio, the text—even for a high-resolution window—may appear pixelated.
Classic view – No improvements or changes were made. Therefore, there is no high-resolution raster export or vector export option in this view mode.
Compatible file formats – The following file formats are available for each type of analysis window:
  • Shaded Model
    • JPEG (raster)
    • BMP (raster)
    • PNG (raster)
    • PDF
  • Cross Section/3D Viewer
    • JPEG (raster)
    • BMP (raster)
    • PNG (raster)
    • EPS (raster/vector)
    • PS (raster/vector)
    • CGM (vector)
    • PDF
  • 1D/2D Analysis
    • JPEG (raster)
    • BMP (raster)
    • PNG (raster)
    • SVG (vector)
EMF support – This vector graphic, which was used in Zemax 13, was not added as an export format. There were several inconsistencies with how Windows implemented EMF support. In most analysis windows, the newer SVG format is used for vector export.
Frame – The lower portion of analysis windows where text displays may look less clear than it did in previous releases. Increasing the resolution of the display or maximizing the analysis window will improve the clarity of the text.
High-resolution exports – When exporting at an extremely high resolution (2x the resolution of the window or greater), the size and placement of text might look different from what appears on the screen. Different elements of the exported plot scale slightly differently and the larger the scaling, the larger the difference.  Also, annotations are designed to stay fixed relative to the window itself, so as plot elements shift, the annotations might shift as well. These shifts are not present for vector export.
Shaded Model layout – This layout can only be exported as a raster image; vector export is not available. For either a Cross Section or 3D Viewer, you can use vector export. For all 1D and 2D analyses (except those listed at the end of this article), you can use vector export.
Side-by-side analysis results – There are four analysis windows which display two different results side-by-side in the same window. For these analysis windows, multiple files are generated during the export process. If a raster export is selected, then the intermediate files will automatically be deleted, and a combined file will appear after the export is finished. If vector export is selected, then the individual charts (left/right or up/down charts) will be exported as _1 & _2 and these individual files will not be combined. The following analysis windows have side-by-side results:
  • Biocular Dipvergence/Convergence
  • Contrast Loss
  • Field Curvature/Distortion
  • Geometric Line/Edge Spread
Surface plots – Analysis windows which have a Show As Surface have the ability to both rotate and pan the 3D data. During rotation or panning, the axis labels might appear below the text of the Frame at the bottom of the window. The raster export for a Surface plot will be what is shown on the screen, so if text is overlapping or off the screen, then the exported data will have the same layout. Use the scroll wheel to appropriately scale the data so there is no overlapping text.
SVG vector syntax markup – Validated using validator.w3c.org, which only considers the syntax of the markup. If you’re having difficulty opening an exported SVG file using third-party software, please ensure that the software can properly read the syntax adopted by w3c.org.
Unimpacted analysis windows – High-resolution raster or vector graphics have not yet been implemented for the following analyses:
  • Biocular Field of View
  • Bitmap File Viewer
  • CIE 1931 and CIE 1976 color charts
  • Extended Diffraction Image Analysis
  • Geometric Bitmap Image Analysis
  • Geometric Image Analysis
  • Glass Map and Athermal Glass Map
  • IMA and BIM File Viewer
  • Image Simulation
  • Light Source Analysis
  • Optical Path
  • Phase Aberration
  • Polarization Pupil Map
  • Pupil Aberration
  • Ray Aberration
  • Scatter Function Viewer
  • Seidel Diagram
  • Source Directivity Plot
  • Source Illumination Map
  • Source Spectrum Plot
  • Transmission Fan
  • View Radiant Source Models
  • Y-Ybar Drawing

Conclusion

This article lists how to use the improved graphic export functionality in the current version of OpticStudio 18.7.  We are investigating ways to improve this functionality in future versions and to remove some of the considerations listed above.