PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Defining the image section
  • Limitations
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
The ImageWidth property gets and sets the width of the image section displayed in an Image control or in the background of a Chart control.
Remark: The display mode of the image selected in the description of the Image control will be applied to the image section.
Versions 15 and later
Android This property is now available for Android applications.
New in version 15
Android This property is now available for Android applications.
Android This property is now available for Android applications.
Versions 17 and later
iPhone/iPad This property is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This property is now available for iPhone/iPad applications.
iPhone/iPad This property is now available for iPhone/iPad applications.
Example
IMG_ImageControl.XImage = 20
IMG_ImageControl.YImage = 20
IMG_ImageControl.ImageHeight = 40
IMG_ImageControl.ImageWidth = 40
Syntax

Finding out the width of the displayed section Hide the details

<Section width> = <Control used>.ImageWidth
<Section width>: Integer
  • Width (expressed in pixels):
    • of the image section that must be displayed in the Image control.
    • of the image section that must be displayed in the background of the Chart control.
  • -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 the control to be used.

Modifying the width of the displayed section Hide the details

<Control used>.ImageWidth = <New width>
<Control used>: Control name
Name of the control to be used.
<New width>: Integer
  • Width (expressed in pixels):
    • of the image section that must be displayed in the Image control.
    • of the image section that must be displayed in the background of the Chart control.
  • -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: 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.

Limitations

In the windows, this property only applies to the following controls:
  • Image control.
  • Chart control.
Java The ImageWidth property applies only to Image controls.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment