| Home > Function descriptions > | History back Previous chapter Next chapter Print |
DirectRenderer |
|
uEye ActiveX Manual Version 4.00
Syntax
LONG DirectRenderer(LONG nMode, BYTE *pParam, LONG SizeOfParam)
Description
DirectRenderer() provides a set of advanced rendering functions and allows inserting overlay data into the camera's live image without flicker. The graphics card functions of the Direct3D library are supported under Windows.
|
|
|
|
Parameters
nMode |
|
|
DR_GET_OVERLAY_DC |
Returns the device context (DC) handle to the overlay area of the graphics card.
|
|
DR_RELEASE_OVERLAY_DC |
Releases the device context (DC) handle.
|
|
DR_GET_MAX_OVERLAY_SIZE |
Returns the width x and height y of the maximum overlay area supported by the graphics card. |
|
DR_SET_OVERLAY_SIZE |
Defines the size of the overlay area (default: current camera image size). |
|
DR_GET_OVERLAY_SIZE |
Returns the size of the overlay area. |
|
DR_SET_OVERLAY_POSITION |
Defines the position of the overlay area. |
|
DR_GET_OVERLAY_KEY_COLOR |
Returns the RGB values of the current key color (default: black). |
|
DR_SET_OVERLAY_KEY_COLOR |
Defines the RGB values of the key color.
|
|
DR_SHOW_OVERLAY |
Enables overlay display on top of the current camera image. |
|
DR_HIDE_OVERLAY |
Disables overlay display. |
|
DR_ENABLE_SCALING |
Enables real-time scaling of the image to the size of the display window. The overlay is scaled together with the camera image. |
|
DR_ENABLE_IMAGE_SCALING |
Enables real-time scaling of the image to the size of the display window. The overlay is not scaled. |
|
DR_DISABLE_SCALING |
Disables real-time scaling. |
|
DR_ENABLE |
Enables a semi-transparent display of the overlay area.
|
|
DR_DISABLE |
Disables the semi-transparent display of the overlay area. |
|
DR_SET_VSYNC_AUTO |
Enables synchronization of the image display with the monitor's image rendering. The image is displayed upon the monitor's next VSYNC signal. |
|
DR_SET_VSYNC_OFF |
Disables image display synchronization. The image is displayed immediately. |
|
DR_SET_USER_SYNC |
Enables synchronization of the image display with a monitor pixel row specified by the user.
|
|
DR_GET_USER |
Returns the minimum and maximum row position for DR_SET_USER_SYNC. |
|
DR_LOAD_OVERLAY_FROM_FILE |
Loads a bitmap image (*.BMP file) into the overlay area. If the bitmap image is larger than the overlay area, the bitmap image is clipped. |
|
DR_CLEAR_OVERLAY |
Deletes the data of the overlay area by filling it with black color. |
|
DR_STEAL_NEXT_FRAME |
Copies the next image to the active user memory (Steal function).
|
|
DR_SET_STEAL_FORMAT |
Defines the color format for the Steal function.
|
|
DR_GET_STEAL_FORMAT |
Returns the color format setting for the Steal function. |
|
DR_SET_HWND |
Sets a new window handle for image output in Direct3D. |
|
DR_CHECK_COMPATIBILITY |
Returns whether the graphics card supports the uEye Direct3D functions. |
|
pParam |
BYTE-type pointer to a data object or an array of objects (depending on the mode selected using nMode). |
|
SizeOfParam |
Size (in bytes) of the data object or array. |
Return values
IS_SUCCESS |
Function executed successfully |
IS_NO_SUCCESS |
General error message |
When used with DR_CHECK_COMPATIBILITY |
IS_DR_DEVICE_CAPS_INSUFFICIENT The graphics hardware does not fully support the uEye Direct3D functions |
Related functions