femm_save_bitmap
Capture the current FEMM GUI view as a .png or .bmp file for post-solution plots or geometry, with optional zoom, density, contours, and grayscale.
Instructions
Screenshot of the current view to an image file (xo_savebitmap / xi_savebitmap), .png or .bmp. VERIFIED: works only in a session opened with femm_session_open(headless=False) (a GUI window); the headless engine accepts the command but writes nothing. view: post (solution plot) or pre (geometry). density: show a density plot of plot_type (magnetics 'bmag','breal','bimag','hmag','jmag',...; electrostatics 0 V,1 |D|,2 |E|; heatflow 0 T,1 |F|,2 |G|; currentflow 0..8, 3 = |J|). Leave plot_type, lower and upper unset for FEMM's default auto-scaled plot (|B|, V, T or |J|); an explicit plot_type needs lower/upper limits. view='pre' after a solve switches focus back to the geometry window. contours: number of flux/equipotential lines. zoom: [x1, y1, x2, y2] or None = natural. For data plots that work headless use femm_make_plot or femm_mesh_arrays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| view | No | post | |
| zoom | No | ||
| lower | No | ||
| upper | No | ||
| legend | No | ||
| density | No | ||
| session | No | main | |
| contours | No | ||
| grayscale | No | ||
| plot_type | No |