export_numpy#

ImguiFigure.export_numpy(rgb=False)#

Export a snapshot of the Figure as numpy array.

Parameters:

rgb (bool, default False) – if True, use alpha blending to return an RGB image. if False, returns an RGBA array

Returns:

[n_rows, n_cols, 3] for RGB or [n_rows, n_cols, 4] for RGBA

Return type:

np.ndarray