2.1.13.4 export_Matrix_to_image


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

image_import_to_matrix

Header to Included

image_utils.h

Reference