imaqSavePattern
Usage
int imaqSavePattern(const Image* pattern, const char* fileName);
Purpose
Saves a pattern image to disk in PNG format. If you alter the contents of this file, NI Vision may not be able to use the file as a pattern image.
|
Note If you alter the contents of this file, NI Vision may not be able to use the file as a pattern image. |
|
Note Images saved with this function lose any additional vision information other than grayscale pattern matching information. |
|
Note This function is obsolete. The replacement function is imaqWriteVisionFile(), which can save images that contain additional vision information such as an overlay. |
Image Types Supported
IMAQ_IMAGE_U8
Parameters
Name
|
Type
|
Description
|
pattern
|
const Image*
|
The pattern image to save.
|
fileName
|
const char*
|
The name in which the function saves the template image.
|
Return Value
Type
|
Description
|
int |
On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().
|