ipzCaptureWindow()doesn't work with it is because the "Shaded model" layout window doesn't cannot export the image as a metafile (you can see that the option is grayed out in the window). I am not sure why Zemax doesn't allow exporting the window as metafile. Also, AFAIK unfortunately there are no DDE commands to ask Zemax to export a PNG/BMP version .... and there is another "unfortunately" (I'm sorry), Zemax has completely removed GetMetaFile DDE command from OpticStudio since version 14 ... so
ipzCaptureWindow()will not work at all :-( ... is there anyway that you could use
ipzCaptureWindowLQ? It does work well enough with OpticStudio (I mean the quality of output). Let me know.
ipzCaptureWindow()function internally calls Zmeax with the
GetMetaFileDDE dataitem. However, AFAIK Zemax has removed the
GetMetaFileDDE dataitem since Zemax 14 (please double check). Therefore,
ipzCaptureWindow()will not work in ZOS 15 or 15.5. I feel bad for it too since I use the
ipzCaptureWindow()function myself quite often (within the IPython notebook).