Functions
Image Rendering

Display one frame of image. More...

Functions

MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrameEx (IN void *handle, IN void *hWnd, IN MV_DISPLAY_FRAME_INFO_EX *pstDisplayInfo)
 Display one frame of image (extended API 1). More...
 
MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrameEx2 (IN void *handle, IN void *hWnd, IN MV_CC_IMAGE *pstImage, unsigned int enRenderMode)
 Display one frame of image (extended API 2). More...
 

Detailed Description

Display one frame of image.

Function Documentation

◆ MV_CC_DisplayOneFrameEx()

MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrameEx ( IN void *  handle,
IN void *  hWnd,
IN MV_DISPLAY_FRAME_INFO_EX pstDisplayInfo 
)

Display one frame of image (extended API 1).

Parameters
handle[IN] Device handle.
hWnd[IN] Window handle.
pstDisplayInfo[IN] Image information.
Returns
Return MV_OK for success, and return corresponding error code for failure.
Note
 •  The rendering mode can be set to GDI (default) or D3D. Once it is switched from GDI to D3D, it cannot be switched back to GDI.
  • The GDI mode GDI is applicable to all computers with no requirements on graphic card performance.
  • The D3D mode is applicable to computers with installed graphic card of memory larger than 1 GB. In this mode, the live view image on the client will be better than the one in GDI mode.
  • It supports rendering images in pixel format including PixelType_Gvsp_RGB8_Packed, PixelType_Gvsp_BGR8_Packed, and PixelType_Gvsp_Mono8, and with integer type width and height, and supports rendering images in other pixel format with short type width and height.

◆ MV_CC_DisplayOneFrameEx2()

MV_CAMCTRL_API int __stdcall MV_CC_DisplayOneFrameEx2 ( IN void *  handle,
IN void *  hWnd,
IN MV_CC_IMAGE pstImage,
unsigned int  enRenderMode 
)

Display one frame of image (extended API 2).

Parameters
handle[IN] Device handle.
hWnd[IN] Window handle.
pstImage[IN] Image information.
enRenderMode[IN] Image rendering mode: 0: OpenGL.
Returns
Return MV_OK for success, and return corresponding error code for failure.
Note
 • Supported rendering an image over 4 GB in PixelType_Gvsp_RGB8_Packed, PixelType_Gvsp_BGR8_Packed, and PixelType_Gvsp_Mono8 formats.
 • For an image below 4 GB, the image width and image height supports rendering to integer type.
 • To use this API, you should enter the value of nImageLen in structure MV_CC_IMAGE .
Examples
Display.cpp.