PC SOFT

WINDEV的在线文档

  • Finding out the display mode and the alignment mode of an image (syntax 1)
  • Limits
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

..图片模式 is used to find out and modify:
  • the display mode of an image,
  • 18版本和更高版本
    the alignment of the image,
    18新版本
    the alignment of the image,
    the alignment of the image,
  • 18版本和更高版本
    the HQ mode of the image.
    18新版本
    the HQ mode of the image.
    the HQ mode of the 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.

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
例子
// Modify the display mode of the image found in the "IMG_CarImage" control
IMG_CarImage..图片模式=图片.平铺

18版本和更高版本
// Modify the display mode and the alignment mode of the image found in "IMG_CarImage"
IMG_CarImage..图片模式=图片.正常+图片.垂直底对齐
18新版本
// Modify the display mode and the alignment mode of the image found in "IMG_CarImage"
IMG_CarImage..图片模式=图片.正常+图片.垂直底对齐
// Modify the display mode and the alignment mode of the image found in "IMG_CarImage"
IMG_CarImage..图片模式=图片.正常+图片.垂直底对齐

语法

Finding out the display mode and the alignment mode of an image 隐藏详细信息

<Current Mode> = <Control Name>..图片模式
<Current Mode>: Integer constant (or combination of constants)
  • Current display mode of the image:
    图片.居中Centered: Image centered in the control.

    图片.拉长Stretched: Image stretched across the entire surface of the control.

    图片.位似Homothetic: Image enlarged or reduced (while respecting the proportions of the initial image) to occupy the entire surface of the control.

    图片.居中位似Homothetic centered: Image enlarged or reduced (while respecting the proportions of the initial image) to occupy the entire surface of the control and centered in the control.

    图片.延伸位似Homothetic extended: Image enlarged or reduced (while respecting the proportions of the initial image) so that the smaller side of the image is entirely displayed in the control.

    图片.居中延伸位似Homothetic 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.

    图片.不放大倍率位似Homothetic 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.

    图片.不放大倍率居中位似Homothetic 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.

    图片.平铺Tiled: Image displayed at 100% and tiled to occupy the entire surface of the control (tile).

    图片.正常100%: Image displayed at 100% in the top left corner of the control.

18版本和更高版本
  • Alignment mode of the image:
    18版本和更高版本
    图片.水平居中对齐
    18新版本
    图片.水平居中对齐
    图片.水平居中对齐
    Horizontally centered.

    18版本和更高版本
    图片.垂直底对齐
    18新版本
    图片.垂直底对齐
    图片.垂直底对齐
    Bottom vertical alignment.

    18版本和更高版本
    图片.垂直居中对齐
    18新版本
    图片.垂直居中对齐
    图片.垂直居中对齐
    Vertically centered.

    18版本和更高版本
    图片.水平右对齐
    18新版本
    图片.水平右对齐
    图片.水平右对齐
    Horizontal alignment to the right.

18新版本
  • Alignment mode of the image:
    18版本和更高版本
    图片.水平居中对齐
    18新版本
    图片.水平居中对齐
    图片.水平居中对齐
    Horizontally centered.

    18版本和更高版本
    图片.垂直底对齐
    18新版本
    图片.垂直底对齐
    图片.垂直底对齐
    Bottom vertical alignment.

    18版本和更高版本
    图片.垂直居中对齐
    18新版本
    图片.垂直居中对齐
    图片.垂直居中对齐
    Vertically centered.

    18版本和更高版本
    图片.水平右对齐
    18新版本
    图片.水平右对齐
    图片.水平右对齐
    Horizontal alignment to the right.

  • Alignment mode of the image:
    18版本和更高版本
    图片.水平居中对齐
    18新版本
    图片.水平居中对齐
    图片.水平居中对齐
    Horizontally centered.

    18版本和更高版本
    图片.垂直底对齐
    18新版本
    图片.垂直底对齐
    图片.垂直底对齐
    Bottom vertical alignment.

    18版本和更高版本
    图片.垂直居中对齐
    18新版本
    图片.垂直居中对齐
    图片.垂直居中对齐
    Vertically centered.

    18版本和更高版本
    图片.水平右对齐
    18新版本
    图片.水平右对齐
    图片.水平右对齐
    Horizontal alignment to the right.

18版本和更高版本
  • Management of image quality:
    18版本和更高版本
    图片.高品质
    18新版本
    图片.高品质
    图片.高品质
    In homothetic mode, used to improve the quality of the image when this one is reduced in relation to its initial size.

18新版本
  • Management of image quality:
    18版本和更高版本
    图片.高品质
    18新版本
    图片.高品质
    图片.高品质
    In homothetic mode, used to improve the quality of the image when this one is reduced in relation to its initial size.

  • Management of image quality:
    18版本和更高版本
    图片.高品质
    18新版本
    图片.高品质
    图片.高品质
    In homothetic mode, used to improve the quality of the image when this one is reduced in relation to its initial size.

<Control Name>: Character string (with or without quotes)
Name of the control to use.

Modifying the display mode and the alignment mode of an image 隐藏详细信息

<Control Name>..图片模式 = <New Mode>
<Control Name>: Character string (with or without quotes)
Name of the control to use.
<New Mode>: Integer constant
  • New display mode for the image:
    图片.居中Centered: Image centered in the control.

    图片.拉长Stretched: Image stretched across the entire surface of the control.

    图片.位似Homothetic: Image enlarged or reduced (while respecting the proportions of the initial image) to occupy the entire surface of the control.

    图片.居中位似Homothetic centered: Image enlarged or reduced (while respecting the proportions of the initial image) to occupy the entire surface of the control and centered in the control.

    图片.延伸位似Homothetic extended: Image enlarged or reduced (while respecting the proportions of the initial image) so that the smaller side of the image is entirely displayed in the control.

    图片.居中延伸位似Homothetic 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.

    图片.不放大倍率位似Homothetic 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.

    图片.不放大倍率居中位似Homothetic 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.

    图片.平铺Tiled: Image displayed at 100% and tiled to occupy the entire surface of the control (tile).

    图片.正常100%: Image displayed at 100% in the top left corner of the control.

18版本和更高版本
  • Alignment mode of the image:
    18版本和更高版本
    图片.水平居中对齐
    18新版本
    图片.水平居中对齐
    图片.水平居中对齐
    Horizontally centered.

    18版本和更高版本
    图片.垂直底对齐
    18新版本
    图片.垂直底对齐
    图片.垂直底对齐
    Bottom vertical alignment.

    18版本和更高版本
    图片.垂直居中对齐
    18新版本
    图片.垂直居中对齐
    图片.垂直居中对齐
    Vertically centered.

    18版本和更高版本
    图片.水平右对齐
    18新版本
    图片.水平右对齐
    图片.水平右对齐
    Horizontal alignment to the right.

18新版本
  • Alignment mode of the image:
    18版本和更高版本
    图片.水平居中对齐
    18新版本
    图片.水平居中对齐
    图片.水平居中对齐
    Horizontally centered.

    18版本和更高版本
    图片.垂直底对齐
    18新版本
    图片.垂直底对齐
    图片.垂直底对齐
    Bottom vertical alignment.

    18版本和更高版本
    图片.垂直居中对齐
    18新版本
    图片.垂直居中对齐
    图片.垂直居中对齐
    Vertically centered.

    18版本和更高版本
    图片.水平右对齐
    18新版本
    图片.水平右对齐
    图片.水平右对齐
    Horizontal alignment to the right.

  • Alignment mode of the image:
    18版本和更高版本
    图片.水平居中对齐
    18新版本
    图片.水平居中对齐
    图片.水平居中对齐
    Horizontally centered.

    18版本和更高版本
    图片.垂直底对齐
    18新版本
    图片.垂直底对齐
    图片.垂直底对齐
    Bottom vertical alignment.

    18版本和更高版本
    图片.垂直居中对齐
    18新版本
    图片.垂直居中对齐
    图片.垂直居中对齐
    Vertically centered.

    18版本和更高版本
    图片.水平右对齐
    18新版本
    图片.水平右对齐
    图片.水平右对齐
    Horizontal alignment to the right.

18版本和更高版本
  • Management of image quality:
    18版本和更高版本
    图片.高品质
    18新版本
    图片.高品质
    图片.高品质
    In homothetic mode, used to improve the quality of the image when this one is reduced in relation to its initial size.

18新版本
  • Management of image quality:
    18版本和更高版本
    图片.高品质
    18新版本
    图片.高品质
    图片.高品质
    In homothetic mode, used to improve the quality of the image when this one is reduced in relation to its initial size.

  • Management of image quality:
    18版本和更高版本
    图片.高品质
    18新版本
    图片.高品质
    图片.高品质
    In homothetic mode, used to improve the quality of the image when this one is reduced in relation to its initial size.

注意

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

..图片模式 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 to subtract the display mask or the alignment mask from the result (BinaryAND function).

Tip: To only retrieve the value corresponding to the alignment mode, apply a binary mask whose value is the reunion of all the alignment constants. The remaining constant will be the alignment constant used in the image. For example:

CurrentMode整数型
MaskAlignmentMode整数型
AlignmentMode整数型

CurrentModeIMG_Photo..图片模式

MaskAlignmentMode图片.水平居中对齐+图片.水平右对齐+图片.垂直底对齐+图片.垂直居中对齐

AlignmentMode逻辑与CurrentModeMaskAlignmentMode
信息AlignmentMode

Limits

..图片模式 only applies to:
  • the Image controls,
  • the Image columns found in the Table controls,
  • the Chart controls found in the windows.