|
- End of drawing
- Drawing in PHP
- Drawing in Browser code
<Image>.Rotation (Function) In french: <Image>.Rotation
// Rotate the IMG_Image1 control by 45 degrees Result1 is boolean Result1 = IMG_Image1.Rotation(45) IF Result1 = False THEN Error("The operation failed")
Syntax
Performing a simple rotation Hide the details
<Result> = <Image control>.Rotation(<Rotation angle> [, <Options>])
<Result>: Boolean - True if the rotation was performed,
- False otherwise.
<Image control>: Control name Name of the Image control to use. <Rotation angle>: Real Rotation angle (in degrees). - If the angle is positive, the image rotates clockwise.
- If the angle is negative, the image rotates anticlockwise.
<Options>: Integer Versions 17 and later New in version 17
Performing a rotation while modifying the rotation center Hide the details
<Result> = <Image control>.Rotation(<Rotation angle> , <X rotation center> , <Y rotation center> [, <Options>])
<Result>: Boolean - True if the rotation was performed,
- False otherwise.
<Image control>: Control name Name of the Image control to use. <Rotation angle>: Real Rotation angle (in degrees). <X rotation center>: Integer X coordinate (in pixels) of the new rotation center. <Y rotation center>: Integer Y coordinate (in pixels) of the new rotation center. <Options>: Integer constant Rotation options: | | drDefault | Enlarge the image (if necessary) so that it corresponds to the dimensions of rotated image. | drNoEnlarging | The image is turned but it is not enlarged. Constant used by default for the Image controls. |
Versions 18 and later New in version 18 Remarks End of drawing The transformation of the image will not be displayed if <Image>.EndDrawing and <Image>.Rotation are called in the same process. Versions 16 and later New in version 16
Related Examples:
|
Unit examples (WINDEV): Image rotation
[ + ] Image rotation from any point that will be used as rotation center.
|
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |