PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • End of drawing
  • Drawing in PHP
  • Drawing in Browser code
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Rotates an Image control.
Versions 16 and later
Android This function is now available for Android applications.
New in version 16
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 17 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
iPhone/iPad This function is now available for iPhone/iPad applications.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The drawings.
New in version 17
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
iPhone/iPad This function is now available for iPhone/iPad applications.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The drawings.
WINDEVLinux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
iPhone/iPad This function is now available for iPhone/iPad applications.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see The drawings.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// 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 variable>.Rotation(<Rotation angle> [, <Options>])
<Result>: Boolean
  • True if the rotation was performed,
  • False otherwise.
<Image variable>: Image variable
Name of the Image control to be used.
<Rotation angle>: Real
Rotation angle (in degrees).
  • If the angle is positive, the image rotates clockwise.
  • If the angle is negative, the image rotates counterclockwise.
<Options>: Integer
Versions 17 and later
WINDEVWEBDEV - Server codeReports and QueriesWindowsLinuxiPhone/iPadIOS WidgetMac CatalystUser code (UMC) Rotation options:
drAdaptThe image is flipped and enlarged. Then, its size is reduced to correspond to the initial image size.
drDefaultEnlarge the image (if necessary) so that it corresponds to the dimensions of rotated image.
drNoEnlargingThe image is flipped but not enlarged: the image may be truncated.
Constant used by default for the Image controls.

Universal Windows 10 AppAndroidJava This parameter is not available.
New in version 17
WINDEVWEBDEV - Server codeReports and QueriesWindowsLinuxiPhone/iPadIOS WidgetMac CatalystUser code (UMC) Rotation options:
drAdaptThe image is flipped and enlarged. Then, its size is reduced to correspond to the initial image size.
drDefaultEnlarge the image (if necessary) so that it corresponds to the dimensions of rotated image.
drNoEnlargingThe image is flipped but not enlarged: the image may be truncated.
Constant used by default for the Image controls.

Universal Windows 10 AppAndroidJava This parameter is not available.
WINDEVWEBDEV - Server codeReports and QueriesWindowsLinuxiPhone/iPadIOS WidgetMac CatalystUser code (UMC) Rotation options:
drAdaptThe image is flipped and enlarged. Then, its size is reduced to correspond to the initial image size.
drDefaultEnlarge the image (if necessary) so that it corresponds to the dimensions of rotated image.
drNoEnlargingThe image is flipped but not enlarged: the image may be truncated.
Constant used by default for the Image controls.

Universal Windows 10 AppAndroidJava This parameter is not available.
Remarks

End of drawing

If <Image>.EndDrawing and <Image variable>.Rotation are called in the same process, the image changes will not be displayed.
Related Examples:
Image rotation Unit examples (WINDEV): Image rotation
[ + ] Image rotation from any point that will be used as rotation center.
Component: wd270pnt.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment