M_AREA::Set
Set the area value
int Set(
   double       area,
   ProcUnit     *ptrProcUnit,
   int  imageNo,
   int  mode
);
 
Parameters
| area 
 | Area 
 | 
| *ptrProcUnit 
 | Pointer to the processing unit class 
 | 
| imageNo 
 | The current target image number to be registered 
 | 
| mode 
 | bit1:calibration ON/OFF, bit0:scroll ON/OFF 
 | 
Return Value
Returns 0 when the expression is successfully converted.
therwise returns a non-zero value.
Description
Set the area value.
Example
    int Sample::MeasureProc(ProcUnit *ptrProcUnit)
    {
        double posX, posY, areaA;
        int    outputMode = 0;
        M_AREA   area;
        func_measure(&posX, &posY, &area);
        if (ptrSetupData->outputCoordinate == 1) {
                outputMode |= 0x00000001;
        }
        if (ptrSetupData->calibration == 1) {
                outputMode |= 0x00000002;
        }
        // set data
        area.Set(areaA, ptrProcUnit, 0, outputMode);
    }