Import an image file into a matrix
bool image_import_to_matrix( MatrixObject & moTarget, LPCSTR lpcszFile, TreeNode & trFileInfo = NULL, TreeNode & trFilter = NULL, int * pErr = NULL )
if success, return true, otherwise return false.
EX1
#include <image_utils.h> void image_import_to_matrix_ex1() { MatrixLayer ml = Project.ActiveLayer(); MatrixObject mo = ml.MatrixObjects(); string fn = GetOriginPath() + "samples\\Image Processing and Analysis\\scale.jpg"; image_import_to_matrix(mo, fn); }
export_Matrix_to_image, image_import
image_utils.h