ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Defining the image section
  • Limits
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The XImage property gets and sets the initial X-coordinate of the image section that will be displayed in an Image control or in the background of a Chart control.
Reminder: The image origin corresponds to the point in the image that will be displayed in the top left corner of the field.. By default, XImage = 0.
Example
// Connaître l'origine de l'image affichée dans le champ "IMG_Car"
AbscisseSource = IMG_Car.XImage
Syntax

Finding out the X-coordinate of the image section Hide the details

<Result> = <Control used>.XImage
<Result>: Integer
X-coordinate of the image section that will be displayed in the control (in pixels).
<Control used>: Control name
Name of the control to be used.

Modifying the X-coordinate of the image section Hide the details

<Control used>.XImage = <New X-coordinate>
<Control used>: Control name
Name of the control to be used.
<New X-coordinate>: Integer
New X-coordinate of the image section that will be displayed in the control (in pixels). This value must be positive.
Remarks

Defining the image section

An Image control is used to display a section of the image found in the associated image file. The following properties are used to define the image section that will be displayed in the Image control:
  • XImage: defines the X origin of the image portion.
  • YImage: used to define the initial Y-coordinate of the image section.
  • ImageHeight: used to define the height of the image section.
  • ImageWidth: used to define the width of the image section.
In this example, the image section included in the red border will be displayed in the Image control.
The display mode of this image section will be the one defined for the Image control.

Limits

The XImage property applies only to Image and Chart controls in a window. This property does not apply to the Image controls associated with an animated image.
AndroidJava The XImage property applies only to Image controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help