export matrix to an image file
int export_Matrix_to_image( LPCSTR lpcszFileName, LPCSTR lpcszFormat, MatrixObject & mo, int nDPI = 96, bool bGray = false )
Return 0 for success
Before compile this example please run run.LoadOC(Originlab\image_utils.c, 16); in Command Window to load all depentence source files.
#include <image_utils.h> void export_Matrix_to_image_ex1() { MatrixLayer ml("mbook1"); MatrixObject mo = ml.MatrixObjects(); export_Matrix_to_image("c:\\ss.jpg", "jpg", mo); }
image_import_to_matrix
image_utils.h