This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
COMBINE PICTURES
|
COMBINE PICTURES ( resultingPict ; pict1 ; operator ; pict2 {; horOffset ; vertOffset} ) | ||||||||
Parameter | Type | Description | ||||||
resultingPict | Picture |
![]() |
Picture resulting from combination | |||||
pict1 | Picture |
![]() |
First picture to combine | |||||
operator | Longint |
![]() |
Type of combination to be done | |||||
pict2 | Picture |
![]() |
Second picture to combine | |||||
horOffset | Longint |
![]() |
Horizontal offset for superimposition | |||||
vertOffset | Longint |
![]() |
Vertical offset for superimposition | |||||
The COMBINE PICTURES command combines the pict1 and pict2 pictures in operator mode in order to produce a third, resultingPict. The resulting picture is of the compound type and keeps all the characteristics of the source pictures.
Note: This command extends the functionalities offered by the conventional picture combination operators (+/, etc., see the _O_C_BOOLEAN section). These operators remain entirely usable in 4D v11.
In operator, pass the type of combination to be applied. Three types of combinations, which can be accessed via the constants of the “Picture Transformation” theme, are proposed:
Note: Superimposition carried out by the COMBINE PICTURES command differs from the superimposition provided by the conventional & and |operators (exclusive and inclusive superimposition). While the COMBINE PICTURES command preserves the characteristics of each source picture in the resulting picture, the & and | operators process each pixel and generate a bitmap picture in all cases. These operators, originally intended for black and white pictures, are now obsolete.
Given the following pictures:
COMBINE PICTURES(flag;mybackground;Superimposition;mycircle;50;30)
Result:
Product: 4D
Theme: Pictures
Number:
987
Created: 4D v11 SQL
4D Language Reference ( 4D v20 R7)