zoukankan      html  css  js  c++  java
  • MdispSelectWindow (Mil 函数描述)

    Synopsis
     
    Select an image buffer to display in a user-defined window.
    Syntax
    void MdispSelectWindow(
    MIL_ID DisplayId,
    MIL_ID ImageBufId, HWND ClientWindowHandle )
    Description

    This function outputs the content of the specified image buffer to the specified user-defined window, using the specified MIL display.

    If the specified image buffer is smaller in size than the target window size, the border outside the image is not modified. If the specified buffer is larger in size than the target window, the right and bottom portion of the buffer, the part that exceeds the window, is not displayed.

    You can control the displayed area using MdispControl(), MdispPan(), or MdispZoom(). For example, you can center the selected image in the display using MdispControl() with M_CENTER_DISPLAY.

    To remove an image buffer selected to the display using MdispSelectWindow(), you can use MdispSelectWindow() with M_NULL. This leaves the associated window open but leaves it blank.

    This function is valid only in a Windows environment.

    This function does not support remote displays (MdispAlloc() with M_REMOTE_DISPLAY).

     
    Parameters
     
      DisplayId

         Specifies the identifier of the display.

    ImageBufId

         Specifies the image buffer to display. To be displayable, this buffer must be an image buffer that has an M_IMAGE + M_DISP attribute.

         This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.

         Set this parameter to M_NULL to stop displaying the currently selected image buffer on the specified display.

     ClientWindowHandle

          Specifies the handle of the user-defined window or child window. This window must have been created with the Windows API functions. If this parameter is set to zero, this function behaves like MdispSelect().

          Set this parameter to M_NULL if the ImageBufId parameter is set to M_NULL.

     
    Compilation information
     
    Header Include windows.h; mil.h (windows.h must be included first).
    Library Use mil.lib.
    DLL Requires mil.dll; mildisplay.dll.
  • 相关阅读:
    TableEx 控件 v1.0 [原创][免费][开源]
    js刷新页面
    SimpleAjax 开发包 v3.1 (简单的Ajax)
    oracle中的''空字符串和null居然是等价的
    HTTP 错误大全
    Ext2.0 form使用实例
    isqlweb (Web版 SQL Server 管理器)
    关于软件版本
    我的第一个C++程序——方块游戏 v1.0
    轻松实现UltraWebGrid中的分页控制
  • 原文地址:https://www.cnblogs.com/haozhanggy/p/11441954.html
Copyright © 2011-2022 走看看