4D v14.3TRANSFORM PICTURE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
TRANSFORM PICTURE
|
TRANSFORM PICTURE ( picture ; operator {; param1 {; param2 {; param3 {; param4}}}} ) | ||||||||
Parameter | Type | Description | ||||||
picture | Picture |
![]() |
Source picture to be transformed | |||||
![]() |
Resulting picture after transformation | |||||||
operator | Longint |
![]() |
Type of transformation to be done | |||||
param1 | Real |
![]() |
Transformation parameter | |||||
param2 | Real |
![]() |
Transformation parameter | |||||
param3 | Real |
![]() |
Transformation parameter | |||||
param4 | Real |
![]() |
Transformation parameter | |||||
The TRANSFORM PICTURE command applies a transformation of the operator type to the picture passed in the picture parameter.
Note: This command extends the functionalities offered by conventional picture transformation operators (+/, etc., see the Picture Operators section). These operators remain entirely usable in 4D.
The source picture is modified directly after execution of the command. Note that except for “Crop” and “Fade to grey scale,” the operations are not destructive and can be reversed by carrying out the opposite operation or via the “Reset” operation. For example, a picture reduced to 1% will regain its original size with no alteration if it is enlarged by a factor of 100 subsequently. Transformations do not modify the original picture type: for example, a vectorial picture will remain vectorial after its transformation.
In operator, pass the number of the operation to be carried out and in param, the parameter(s) needed for this operation (the number of parameters depends on the operation). You can use one of the constants of the “Picture Transformation” theme in operator. These operators and their parameters are described in the following table:
operator (value) | param1 | param2 | param3 | param4 | Values |
Reset (0) | - | - | - | - | |
Scale (1) | Width | Height | - | - | Factors |
Translate (2) | X axis | Y axis | - | - | Pixels |
Flip horizontally (3) | - | - | - | - | |
Flip vertically (4) | - | - | - | - | |
Crop (100) | X Orig. | Y Orig. | Width | Height | Pixels |
Fade to grey scale (101) | - | - | - | - |
Here is an example of cropping a picture (the picture is displayed in the form with the “Truncated (non-centered)” format):
TRANSFORM PICTURE($vpGears;Crop;50;50;100;100)
Product: 4D
Theme: Pictures
Number:
988
Created: 4D v11 SQL
COMBINE PICTURES
Picture Operators
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
Parent of : TRANSFORM PICTURE ( 4D v14 R3)