PC SOFT

WINDEV的在线文档

  • Overview of the Image control
  • Control of a window, page, report
  • Image formats
  • Creating an Image control
  • In a window
  • In a report
  • Multilingual images
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Overview of the Image control

Control of a window, page, report

The Image control is used to:
  • Display static images or animated images in your applications.
  • Draw.
  • Display charts created by the chart designer. We recommend that you use a Chart control.
  • Run specific processes when the user clicks the image (equivalent to the click areas of WinDev 5.5).
  • Display videos with the MCI functions.
  • WinDev Display PDF files. This feature requires the GDI+ framework.

16版本和更高版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
16新版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
WinDevLinux This type of control is now available for the WinDev applications in Linux.
18版本和更高版本
WinDevWindows Store apps The edit controls are now available for the applications in Windows Store apps mode.
18新版本
WinDevWindows Store apps The edit controls are now available for the applications in Windows Store apps mode.
WinDevWindows Store apps The edit controls are now available for the applications in Windows Store apps mode.

Image formats

Windows Windows支持的图片格式为:
  • Bitmap (*.BMP)
  • 图形交换格式(*.gif)
  • 联合图像专家小组(*.jpg ; *.jpeg)
  • 柯达照片CD(*.pcd)
  • PaintBrush(*.pcx)
  • Adobe Photoshop格式(*.psd)
  • TrueVision TARGA(*.tga)
  • 标记图像文件格式(*.tif ; *.tiff)
    注意: 不支持tiff 6.0标准的"tiled tiff"选项。 在这种情况下,我们建议您以tiff 5.0标准储存图片。
  • Portable Network Graphics (*.png)
  • Windows元文件(*.emf ; *.wmf)
  • 图标(*.ico ; *.icw)
  • 光标(*.CUR) *.cur
  • Portable Document Format (*.pdf)
  • 15版本和更高版本
    Scalable Vector Graphics (*.svg)
    15新版本
    Scalable Vector Graphics (*.svg)
    Scalable Vector Graphics (*.svg)
注意: 若想管理pdf和svg格式,您必须为Windows 2000以及更低版本的计算机安装GDIPLUS.DLL。 对于更高的版本,该DLL由Windows默认提供。 想了解更多信息,请查阅GDI+框架

Linux The following image formats are supported in Linux:
  • Bitmap (*.BMP)
  • Graphics Interchange Format (*.gif)
  • Joint Picture Experts Group (*.jpg ; *.jpeg)
  • Portable Network Graphics (*.png)
  • Portable Bitmap (*.pbm)
  • Portable Graymap (*.pgm)
  • Portable Pixmap (*.ppm)
  • Tagged Image File Format (*.tiff)
    Note: the "tiled tiff" option of the tiff 6.0 standard is not supported. In this case, we advise you to save the image in tiff 5.0 standard.
  • X11 Bitmap (*.xbm)
  • X11 Pixmap (*.xpm)

Creating an Image control
WinDevWindows Store apps

In a window

To create an Image control:
  1. In the window editor, click(or select "Insert .. Control .. Image").On the "创建" pane, in the "常用控件" group, click "图片".
  2. Click the position where the control must be created in the window. The control appears in creation mode.
To display the characteristics of the control, select "Description" from the popup menu of the control.

In the "General" tab, you have the ability to define:
  • the image displayed by the control ([...] button).
    WinDev If the image control displays a PDF file, all you have to do is select the PDF file to display. ..图片模式, ..页数 and ..页码 are used to select (if necessary) the page of the PDF file that must be displayed in the image control.
    Caution: Displaying a PDF file in an image requires the GDI+ framework.

  • the use of the 9-image mode.
  • the display mode, the transparency, the position and the symmetry of the images. See Choosing the display mode of the image for more details.

The "Details" tab is used to define:

  • Whether the image must be animated. See Animating an image for more details.
  • Whether the image is a click area. See Clickable Image control for more details.
  • Whether the image must display a popup menu. See Popup menu of Image controls for more details.
  • Whether the image must display scrollbars and must allow the zoom in the control. This option is required to display the PDF files in the Image controls. If the PDF file cannot be entirely displayed in the Image control, scrollbars are displayed and the zoom is available via [CTRL] + mouse wheel. The zoom can also be handled by programming via ..缩放.
  • 18版本和更高版本
    WinDev If the image must be orientated according to its Exif data. If this option is enabled, a photo will be automatically displayed in the proper direction (portrait or landscape) according to the Exif data of the photo.
    18新版本
    WinDev If the image must be orientated according to its Exif data. If this option is enabled, a photo will be automatically displayed in the proper direction (portrait or landscape) according to the Exif data of the photo.
    WinDev If the image must be orientated according to its Exif data. If this option is enabled, a photo will be automatically displayed in the proper direction (portrait or landscape) according to the Exif data of the photo.

WinDev

In a report

To create an Image control:
  1. In the report editor, click.On the "创建" pane, in the "常用控件" group, click "图片".
  2. Click the position where the control must be created in the report. The control appears in creation mode.
To display the characteristics of the control, select "Description" from the popup menu of the control. The [...] button found in the "General" tab is used to select the image (or PDF file) associated with the Image control.

See Choosing the display mode of the image for more details.

Multilingual images
If your application is a multilingual application, a different image can be selected for each language. This option is useful when the images contain a text for example.

To manage the multilingual images:

  1. Display the description of the Image control.
  2. Click the icon. The window for managing the multilingual images is displayed. By default, the same file is associated with all the languages supported by the window, page or report.
  3. For each language, click the [...] button and select the image corresponding to the language. At run time, the corresponding image will be displayed according to the language chosen by 国家.
Caution: Only the image files are managed by the multilingual feature, not the display characteristics of the image.

Note: If a multilingual image was defined, the following message is displayed in the image description: