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 ImageHeight property is used to:
  • Find out the height of the image section displayed in an Image control or in the background of a Chart control.
  • Modify the height of the image section displayed in an Image control or in the background of a Chart control.
Note: The image display mode selected in the Image field description will be applied to the image portion.
Example
IMG_ChampImage.XImage = 20
IMG_ChampImage.YImage = 20
IMG_ChampImage.HauteurImage = 40
IMG_ChampImage.LargeurImage = 40
Syntax

Finding out the height of the section displayed Hide the details

<Section height> = <Control used>.ImageHeight
<Section height>: Integer
  • Height of the image section that will be displayed in the Image control or in the background of the Chart control (expressed in pixels).
  • -1 if the entire image is displayed in the Image control or in the background of the Chart control.
<Control used>: Control name
Name of control to use:
  • Image control,
  • Chart control.

Modifying the height of the section displayed Hide the details

<Control used>.ImageHeight = <New height>
<Control used>: Control name
Name of control to use:
  • Image control,
  • Chart control.
<New height>: Integer
  • Height of the image section that will be displayed in the Image control or in the background of the Chart control (expressed in pixels).
  • -1 to display the entire image in the Image control or in the background of the Chart control.
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: used to define the origin of the image section.
  • YImage: used to define the origin of the image section.
  • ImageHeight: defines the height of the image portion.
  • 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

This property only applies to the Image controls and to the Chart controls found in the windows.
Android Widget IOS WidgetJava The ImageHeight 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