Returns, Parameters – Sensoray 2246 User Manual

Page 45

Advertising
background image

regionmask -- region mask (MID2246_REGION_MONITOR, MID2246_REGION_MPEG,
MID2246_REGION_STILL)
board ID if multiple boards installed.

Returns:

0 on success, -1 on too many regions, other negative value failure

MID2246_API int SN_OverlayImage (int xpos, int ypos, char * imageFile, int regionmask, int

board)

Adds overlay image. If overlay already exists at that x,y position, deletes window before
adding.

Parameters:

xpos -- start X position
ypos -- start y position
imageFile -- pointer to overlay image(full path) 24bit BMP or PCX files supported only
regionmask -- output region mask
board ID if multiple boards installed.

Returns:

0 on success, -1 on too many regions, other negative value on failure

MID2246_API int SN_OverlayImageIdx (int AtIndex, int xpos, int ypos, char * imageFile, int

regionmask, int board)

Adds/Update overlay image. If overlay already exists at index WinIndex, deletes window
before adding.

Parameters:

AtIndex -- sub-window position to update/add text
xpos -- start X position
ypos -- start y position
imageFile -- pointer to overlay image(full path) 24bit BMP or PCX files supported only
regionmask -- output region mask
board ID if multiple boards installed.

Returns:

0 on success, -1 on too many regions, other negative value on failure

MID2246_API int SetOverlayImageRaw (BYTE * image, int xPos, int yPos, int xSize, int

ySize, int AtIndex, int AtIndex, int xpos, int ypos, int regionmask, int board)

Adds/Update overlay image. If overlay already exists at index WinIndex, deletes window
before adding.

Parameters:

image -- Pointer to memory containing 24-bit RGB data Row 0 first
xpos -- Start X position
ypos -- Start Y position
xSizes -- Size of horizontal line in pixels (Each pixel is 3 bytes: LSB=Red,Green,MSB=Blue)
ySize -- Number of Lines
AtIndex -- sub-window position to update/add image
regionmask -- output region mask
board ID if multiple boards installed.

Returns:

0 on success, -1 on too many regions, other negative value on failure

45

Advertising