【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.13.4 export_Matrix_to_image
Contents
Description
export matrix to an image file
Syntax
int export_Matrix_to_image( LPCSTR lpcszFileName, LPCSTR lpcszFormat, MatrixObject & mo, int nDPI = 96, bool bGray = false )
Parameters
- lpcszFileName
- [input] the image file name
- lpcszFormat
- [input] the image format
- mo
- [input] the matrix to export
- nDPI
- [input] the resolution of the image
- bGray
- [input] whether set the image as grayscale
Return
Return 0 for success
Examples
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); }
Remark
See Also
Header to Included
image_utils.h