PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE


  • Finding out the display mode and the alignment mode of an image (syntax 1)
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
ImageMode (Property)
 
..ImageMode is used to find out and modify:
  • the display mode of an image,
  • Versiones 18 y posteriores
    the alignment of image,
    Nueva funcionalidad versión 18
    the alignment of image,
    the alignment of image,
  • Versiones 18 y posteriores
    the HQ mode of image.
    Nueva funcionalidad versión 18
    the HQ mode 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,
  • Versiones 22 y posteriores
    for a Button control.
    Nueva funcionalidad versión 22
    for a Button control.
    for a Button control.
Versiones 15 y posteriores
WEBDEV - Código Servidor This property is available in WEBDEV in Server code.
Nueva funcionalidad versión 15
WEBDEV - Código Servidor This property is available in WEBDEV in Server code.
WEBDEV - Código Servidor This property is available in WEBDEV in Server code.
Versiones 15 y posteriores
Android This property is now available for the Android applications.
Nueva funcionalidad versión 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versiones 18 y posteriores
iPhone/iPad This property is now available for the iPhone/iPad applications.
Nueva funcionalidad versión 18
iPhone/iPad This property is now available for the iPhone/iPad applications.
iPhone/iPad This property is now available for the iPhone/iPad applications.
Versiones 20 y posteriores
WINDEV MobileAndroidiPhone/iPad This property is now available for the table columns in the Android applications and in the iPhone/iPad applications.
Nueva funcionalidad versión 20
WINDEV MobileAndroidiPhone/iPad This property is now available for the table columns in the Android applications and in the iPhone/iPad applications.
WINDEV MobileAndroidiPhone/iPad This property is now available for the table columns in the Android applications and in the iPhone/iPad applications.
Note: The display mode of an image is defined in the window editor or in the page editor in the control description ("General" tab).
Some examples:
Normal image
Normal image
Centered image
Centered image
Stretched image
Stretched image
Homothetic centered image
Homothetic centered image
Tiled image
Tiled image
Ejemplo
// Modify the display mode of image found in the "IMG_CarImage" control
IMG_CarImage..ImageMode = imgTiled
Versiones 18 y posteriores
// Modify the display mode and the alignment mode of image found in "IMG_CarImage"
IMG_CarImage..ImageMode = imgNormal + imgAlignVBottom
Nueva funcionalidad versión 18
// Modify the display mode and the alignment mode of image found in "IMG_CarImage"
IMG_CarImage..ImageMode = imgNormal + imgAlignVBottom
// Modify the display mode and the alignment mode of image found in "IMG_CarImage"
IMG_CarImage..ImageMode = imgNormal + imgAlignVBottom
Versiones 21 y posteriores
// Management of large fonts: the image is not enlarged because a drawing will be performed
IMG_CarImage..ImageMode = IMG_CarImage..ImageMode + imgNoScale
Nueva funcionalidad versión 21
// Management of large fonts: the image is not enlarged because a drawing will be performed
IMG_CarImage..ImageMode = IMG_CarImage..ImageMode + imgNoScale
// Management of large fonts: the image is not enlarged because a drawing will be performed
IMG_CarImage..ImageMode = IMG_CarImage..ImageMode + imgNoScale
Sintaxis

Finding out the display mode and the alignment mode of an image Ocultar los detalles

<Current Mode> = <Control Name>..ImageMode
<Current Mode>: Integer constant (or combination of constants)
  • Current display mode of image:
    imgCenteredCentered: Image centered in the control.
    imgStretchedStretched: Image stretched across the entire surface of control.
    imgHHomothetic: Image enlarged or reduced (while respecting the proportions of initial image) to occupy the entire surface of control.
    imgHCHomothetic centered: Image enlarged or reduced (while respecting the proportions of initial image) to occupy the entire surface of control and centered in the control.
    imgHEHomothetic extended: Image enlarged or reduced (while respecting the proportions of initial image) so that the smaller side of image is entirely displayed in the control.
    imgHCEHomothetic centered extended: Image enlarged or reduced (while respecting the proportions of the initial image) in order for the smaller side of the image to be entirely displayed in the control and in order for the image to be centered in the control.
    imgHWISHomothetic without enlargement: If the image can be entirely displayed in the control, it is displayed at 100%. Otherwise, the image is proportionally reduced in order to be entirely displayed.
    Android This constant is not available.
    imgHCWISHomothetic without enlargement: If the image can be entirely displayed in the control, it is displayed at 100% and centered in the control. Otherwise, the image is proportionally reduced in order to be entirely displayed and centered in the control.
    Android This constant is not available.
    imgTiledTiled: Image displayed at 100% and tiled to occupy the entire surface of control (tile).
    imgNormal100%: Image displayed at 100% in the top left corner of control.
Versiones 18 y posteriores
  • Alignment mode of the image:
    Versiones 18 y posteriores
    imgAlignHCentered
    Nueva funcionalidad versión 18
    imgAlignHCentered
    imgAlignHCentered
    Horizontally centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVBottom
    Nueva funcionalidad versión 18
    imgAlignVBottom
    imgAlignVBottom
    Bottom vertical alignment.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVCentered
    Nueva funcionalidad versión 18
    imgAlignVCentered
    imgAlignVCentered
    Vertically centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignHRight
    Nueva funcionalidad versión 18
    imgAlignHRight
    imgAlignHRight
    Horizontal alignment to right.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Nueva funcionalidad versión 18
  • Alignment mode of the image:
    Versiones 18 y posteriores
    imgAlignHCentered
    Nueva funcionalidad versión 18
    imgAlignHCentered
    imgAlignHCentered
    Horizontally centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVBottom
    Nueva funcionalidad versión 18
    imgAlignVBottom
    imgAlignVBottom
    Bottom vertical alignment.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVCentered
    Nueva funcionalidad versión 18
    imgAlignVCentered
    imgAlignVCentered
    Vertically centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignHRight
    Nueva funcionalidad versión 18
    imgAlignHRight
    imgAlignHRight
    Horizontal alignment to right.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
  • Alignment mode of the image:
    Versiones 18 y posteriores
    imgAlignHCentered
    Nueva funcionalidad versión 18
    imgAlignHCentered
    imgAlignHCentered
    Horizontally centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVBottom
    Nueva funcionalidad versión 18
    imgAlignVBottom
    imgAlignVBottom
    Bottom vertical alignment.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVCentered
    Nueva funcionalidad versión 18
    imgAlignVCentered
    imgAlignVCentered
    Vertically centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignHRight
    Nueva funcionalidad versión 18
    imgAlignHRight
    imgAlignHRight
    Horizontal alignment to right.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Versiones 18 y posteriores
  • Management of image quality:
    Versiones 18 y posteriores
    imgHQ
    Nueva funcionalidad versión 18
    imgHQ
    imgHQ
    In homothetic mode, used to improve the quality of image when this one is reduced in relation to its initial size.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Nueva funcionalidad versión 18
  • Management of image quality:
    Versiones 18 y posteriores
    imgHQ
    Nueva funcionalidad versión 18
    imgHQ
    imgHQ
    In homothetic mode, used to improve the quality of image when this one is reduced in relation to its initial size.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
  • Management of image quality:
    Versiones 18 y posteriores
    imgHQ
    Nueva funcionalidad versión 18
    imgHQ
    imgHQ
    In homothetic mode, used to improve the quality of image when this one is reduced in relation to its initial size.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Versiones 21 y posteriores
  • Management of large fonts:
    Versiones 21 y posteriores
    imgNoScale
    Nueva funcionalidad versión 21
    imgNoScale
    imgNoScale
    In "Large fonts" mode of Windows, the image displayed in an Image control is automatically zoomed.
    The imgNoScale constant allows you not to zoom the image in "Large fonts" mode. This constant is useful for the controls where a drawing is performed on a bitmap image coming from a screen shot.
    This constant must be combined with one of the constants used to define the display mode of image.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Nueva funcionalidad versión 21
  • Management of large fonts:
    Versiones 21 y posteriores
    imgNoScale
    Nueva funcionalidad versión 21
    imgNoScale
    imgNoScale
    In "Large fonts" mode of Windows, the image displayed in an Image control is automatically zoomed.
    The imgNoScale constant allows you not to zoom the image in "Large fonts" mode. This constant is useful for the controls where a drawing is performed on a bitmap image coming from a screen shot.
    This constant must be combined with one of the constants used to define the display mode of image.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
  • Management of large fonts:
    Versiones 21 y posteriores
    imgNoScale
    Nueva funcionalidad versión 21
    imgNoScale
    imgNoScale
    In "Large fonts" mode of Windows, the image displayed in an Image control is automatically zoomed.
    The imgNoScale constant allows you not to zoom the image in "Large fonts" mode. This constant is useful for the controls where a drawing is performed on a bitmap image coming from a screen shot.
    This constant must be combined with one of the constants used to define the display mode of image.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
<Control Name>: Character string (with or without quotes)
Name of control to use.

Modifying the display mode and the alignment mode of an image Ocultar los detalles

<Control Name>..ImageMode = <New Mode>
<Control Name>: Character string (with or without quotes)
Name of control to use.
<New Mode>: Integer constant
  • New display mode for the image:
    imgCenteredCentered: Image centered in the control.
    imgStretchedStretched: Image stretched across the entire surface of control.
    imgHHomothetic: Image enlarged or reduced (while respecting the proportions of initial image) to occupy the entire surface of control.
    imgHCHomothetic centered: Image enlarged or reduced (while respecting the proportions of initial image) to occupy the entire surface of control and centered in the control.
    imgHEHomothetic extended: Image enlarged or reduced (while respecting the proportions of initial image) so that the smaller side of image is entirely displayed in the control.
    imgHCEHomothetic centered extended: Image enlarged or reduced (while respecting the proportions of the initial image) in order for the smaller side of the image to be entirely displayed in the control and in order for the image to be centered in the control.
    imgHWISHomothetic without enlargement: If the image can be entirely displayed in the control, it is displayed at 100%. Otherwise, the image is proportionally reduced in order to be entirely displayed.
    Android This constant is not available.
    imgHCWISHomothetic without enlargement: If the image can be entirely displayed in the control, it is displayed at 100% and centered in the control. Otherwise, the image is proportionally reduced in order to be entirely displayed and centered in the control.
    Android This constant is not available.
    imgTiledTiled: Image displayed at 100% and tiled to occupy the entire surface of control (tile).
    imgNormal100%: Image displayed at 100% in the top left corner of control.
Versiones 18 y posteriores
  • Alignment mode of the image:
    Versiones 18 y posteriores
    imgAlignHCentered
    Nueva funcionalidad versión 18
    imgAlignHCentered
    imgAlignHCentered
    Horizontally centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVBottom
    Nueva funcionalidad versión 18
    imgAlignVBottom
    imgAlignVBottom
    Bottom vertical alignment.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVCentered
    Nueva funcionalidad versión 18
    imgAlignVCentered
    imgAlignVCentered
    Vertically centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignHRight
    Nueva funcionalidad versión 18
    imgAlignHRight
    imgAlignHRight
    Horizontal alignment to right.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Nueva funcionalidad versión 18
  • Alignment mode of the image:
    Versiones 18 y posteriores
    imgAlignHCentered
    Nueva funcionalidad versión 18
    imgAlignHCentered
    imgAlignHCentered
    Horizontally centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVBottom
    Nueva funcionalidad versión 18
    imgAlignVBottom
    imgAlignVBottom
    Bottom vertical alignment.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVCentered
    Nueva funcionalidad versión 18
    imgAlignVCentered
    imgAlignVCentered
    Vertically centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignHRight
    Nueva funcionalidad versión 18
    imgAlignHRight
    imgAlignHRight
    Horizontal alignment to right.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
  • Alignment mode of the image:
    Versiones 18 y posteriores
    imgAlignHCentered
    Nueva funcionalidad versión 18
    imgAlignHCentered
    imgAlignHCentered
    Horizontally centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVBottom
    Nueva funcionalidad versión 18
    imgAlignVBottom
    imgAlignVBottom
    Bottom vertical alignment.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignVCentered
    Nueva funcionalidad versión 18
    imgAlignVCentered
    imgAlignVCentered
    Vertically centered.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
    Versiones 18 y posteriores
    imgAlignHRight
    Nueva funcionalidad versión 18
    imgAlignHRight
    imgAlignHRight
    Horizontal alignment to right.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Versiones 18 y posteriores
  • Management of image quality:
    Versiones 18 y posteriores
    imgHQ
    Nueva funcionalidad versión 18
    imgHQ
    imgHQ
    In homothetic mode, used to improve the quality of image when this one is reduced in relation to its initial size.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Nueva funcionalidad versión 18
  • Management of image quality:
    Versiones 18 y posteriores
    imgHQ
    Nueva funcionalidad versión 18
    imgHQ
    imgHQ
    In homothetic mode, used to improve the quality of image when this one is reduced in relation to its initial size.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
  • Management of image quality:
    Versiones 18 y posteriores
    imgHQ
    Nueva funcionalidad versión 18
    imgHQ
    imgHQ
    In homothetic mode, used to improve the quality of image when this one is reduced in relation to its initial size.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Versiones 21 y posteriores
  • Management of large fonts:
    Versiones 21 y posteriores
    imgNoScale
    Nueva funcionalidad versión 21
    imgNoScale
    imgNoScale
    In "Large fonts" mode of Windows, the image displayed in an Image control is automatically zoomed.
    The imgNoScale constant allows you not to zoom the image in "Large fonts" mode. This constant is useful for the controls where a drawing is performed on a bitmap image coming from a screen shot.
    This constant must be combined with one of the constants used to define the display mode of image.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Nueva funcionalidad versión 21
  • Management of large fonts:
    Versiones 21 y posteriores
    imgNoScale
    Nueva funcionalidad versión 21
    imgNoScale
    imgNoScale
    In "Large fonts" mode of Windows, the image displayed in an Image control is automatically zoomed.
    The imgNoScale constant allows you not to zoom the image in "Large fonts" mode. This constant is useful for the controls where a drawing is performed on a bitmap image coming from a screen shot.
    This constant must be combined with one of the constants used to define the display mode of image.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
  • Management of large fonts:
    Versiones 21 y posteriores
    imgNoScale
    Nueva funcionalidad versión 21
    imgNoScale
    imgNoScale
    In "Large fonts" mode of Windows, the image displayed in an Image control is automatically zoomed.
    The imgNoScale constant allows you not to zoom the image in "Large fonts" mode. This constant is useful for the controls where a drawing is performed on a bitmap image coming from a screen shot.
    This constant must be combined with one of the constants used to define the display mode of image.
    WEBDEV - Código ServidorAndroidJava This constant is not available.
Observaciones

Finding out the display mode and the alignment mode of an image (syntax 1)

..ImageMode returns a single value representing both the display mode of the image and the 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 (BinaryAND).
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:
CurrentMode is int
MaskAlignmentMode is int
AlignmentMode is int

CurrentMode = IMG_Photo..ImageMode

MaskAlignmentMode = imgAlignHCentered + imgAlignHRight + imgAlignVBottom + imgAlignVCentered

AlignmentMode = BinaryAND(CurrentMode, MaskAlignmentMode)
Info(AlignmentMode)

Limits

..ImageMode only applies to:
  • the Image controls,
  • the Image columns found in the Table controls,
  • the Chart controls found in the windows,
  • Versiones 22 y posteriores
    the Button controls.
    Nueva funcionalidad versión 22
    the Button controls.
    the Button controls.
Java ..ImageMode only applies to the Image controls.
AndroidJava If the display mode is modified by programming, the content of the image must be re-assigned to view the changes.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario