|
|
|
|
- Finding out the display mode and the alignment mode of an image (syntax 1)
- Limits
ImageMode (Property) In french: ImageMode
The ImageMode property is used to get and change: - the display mode of an image,
- the alignment of image,
- the HQ mode of image.
This property can be used: - for an Image control,
- for an Image table column,
- for the background of a Chart control found in a window,
- for a Button control.
Remark: The display mode of an image is defined in the window editor or in the page editor in the control description ("General" tab). For example: | | | Normal image | Centered image | Stretched image | Homothetic centered image | Tiled image | |
IMG_ImageVoiture.ImageMode = imgTiled
IMG_ImageVoiture.ImageMode = imgNormal + imgAlignVBottom
IMG_ImageVoiture.ImageMode = IMG_ImageVoiture.ImageMode + imgNoScale
Syntax
Finding out the display mode and the alignment mode of an image Hide the details
<Current mode> = <Control used>.ImageMode
Modifying the display mode and the alignment mode of an image Hide the details
<Control used>.ImageMode = <New mode>
Remarks Finding out the display mode and the alignment mode of an image (syntax 1) The ImageMode property returns a single value representing both the image display and alignment mode. To separate the alignment information from the display information, a binary filter must be applied in order to subtract the display mask or the alignment mask from the result ( BitwiseAND). Tip: To only retrieve the value corresponding to the alignment mode, apply a binary mask whose value is the reunion of all alignment constants. The remaining constant will be the alignment constant used in the image. For example: ModeActuel is int
MasqueModeAlignement is int
ModeAlignement is int
ModeActuel = IMG_Photo.ImageMode
MasqueModeAlignement = imgAlignHCentered + imgAlignHRight + imgAlignVBottom + imgAlignVCentered
ModeAlignement = BitwiseAND(ModeActuel, MasqueModeAlignement)
Info(ModeAlignement)
Limits The ImageMode property applies only to: - the Image controls,
- the Image columns found in the Table controls,
- Chart controls in windows,
- the Button controls.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|