How to instantiate and delete an Alpha Channel
The MultiCam API functions to manage the Domino channels are:
Function |
Method |
McCreate |
By-ident reference method |
McCreateNm |
By-name reference method |
McDelete |
N/A |
The following code manages two channels for the Domino board:
//Connecting to driver
MCSTATUS Status = McOpenDriver(NULL);
//Instantiating a first Alpha channel using the by-ident method
MCHANDLE MyAlphaChannel1;
Status = McCreate(MC_CHANNEL_ALPHA_X, &MyAlphaChannel1);
//Instantiating a second Alpha channel using the by-name method
MCHANDLE MyAlphaChannel2;
Status = McCreateNm("Alpha_Y", &MyAlphaChannel2);
//...
//Application code
//...
//Deleting the Alpha channels
Status = McDelete(MyAlphaChannel1);
Status = McDelete(MyAlphaChannel2);
//Disconnecting from driver
Status = McCloseDriver();
The Status variable can be used for error checking.