4D v14.3Equal pictures |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
Equal pictures
|
Equal pictures ( picture1 ; picture2 ; mask ) -> Function result | ||||||||
Parameter | Type | Description | ||||||
picture1 | Picture field, Picture variable |
![]() |
Original source picture | |||||
picture2 | Picture field, Picture variable |
![]() |
Picture to compare | |||||
mask | Picture field, Picture variable |
![]() |
Resulting mask | |||||
Function result | Boolean |
![]() |
True if both pictures are identical; otherwise, False | |||||
The Equal pictures command precisely compares both the dimensions and the contents of two pictures.
Pass the source picture in picture1 and the picture you want to compare with it in picture2.
If the command is executed successfully (the two pictures are compared), the system variable OK is set to 1. In the case of an anomaly, particularly if one of the pictures is not initialized (blank picture), the OK variable is set to 0.
In the following example, we compare two pictures (pict1 and pict2) and display the resulting mask:
Here is the code for the Compare button:
$equal :=Equal pictures($pict1;$pict2;$mask)
Product: 4D
Theme: Pictures
Number:
1196
Created: 4D v13
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)