|
|
Typical Usage:
(Examples of a typical usage of the component in user code.
For more information please
see the page Component Code
Typical Usage.)
The following code sets background windows and sets vertical and horizontal position: (assuming bean name "OSD1") byte ErrorCode; /* Set background window 0. */ ErrorCode = OSD1_SetWinAttrb(0,0,10,0,15,clWhite,1,1,clGreen,8,8); /* Set background window 1. */ ErrorCode = OSD1_SetWinAttrb(1,0,11,0,27,clBlue,0,0,clRed,8,8); /* Set background window 2. */ ErrorCode = OSD1_SetWinAttrb(2,0,12,0,29,clRed,0,0,clGreen,8,8); /* Set background window 3. */ ErrorCode = OSD1_SetWinAttrb(3,0,15,0,31,clWhite,0,0,clBlue,8,8); /* Set vertical position for all background windows. */ ErrorCode = OSD1_SetVertPos(20); /* Set horizontal position for all background windows. */ ErrorCode = OSD1_SetHorizPos(20); /* Show OSD Window on the monitor screen*/ ErrorCode = OSD1_Enable(); |