flamme34
June 6, 2017, 16:35:39
Hello,
i have a problem with the activeX component of imaging source with Borland C++ 2006.
I can see liveStream on my windows but i can't see overlay.
I try to use the sample for overlay :
void PM_Camera_ImagingSource::SetupOverlay(OverlayBitma p* oB)
{
oB->Enable = true;
oB->DropOutColor = RGB(255,0,255);
oB->Fill(chose->DropOutColor);
oB->FontTransparent = true;
oB->DrawText( RGB(255, 0, 0), 10, 10, L"IC Imaging Control 2.0");
}
and
bool PM_Camera_ImagingSource::Start()
{
if ( cameraControl->DeviceValid)
{
SetupOverlay(cameraControl->OverlayBitmapAtPath[PATHPOSITION_DEVICE]);
SetupOverlay(cameraControl->OverlayBitmapAtPath[PATHPOSITION_DISPLAY]);
SetupOverlay(cameraControl->OverlayBitmapAtPath[PATHPOSITION_SINK]);
cameraControl->LiveStart();
return true;
}
else
return false;
}
I saw that when i do "oB->Enable = true;" the state of Enable never change.
if i do :
oB->Enable = true;
if (oB->Enable)
return true;
else
return false;
the function return always false.
must I change some properties for that Enable change state?
I use the DFK 72AUC02
i have a problem with the activeX component of imaging source with Borland C++ 2006.
I can see liveStream on my windows but i can't see overlay.
I try to use the sample for overlay :
void PM_Camera_ImagingSource::SetupOverlay(OverlayBitma p* oB)
{
oB->Enable = true;
oB->DropOutColor = RGB(255,0,255);
oB->Fill(chose->DropOutColor);
oB->FontTransparent = true;
oB->DrawText( RGB(255, 0, 0), 10, 10, L"IC Imaging Control 2.0");
}
and
bool PM_Camera_ImagingSource::Start()
{
if ( cameraControl->DeviceValid)
{
SetupOverlay(cameraControl->OverlayBitmapAtPath[PATHPOSITION_DEVICE]);
SetupOverlay(cameraControl->OverlayBitmapAtPath[PATHPOSITION_DISPLAY]);
SetupOverlay(cameraControl->OverlayBitmapAtPath[PATHPOSITION_SINK]);
cameraControl->LiveStart();
return true;
}
else
return false;
}
I saw that when i do "oB->Enable = true;" the state of Enable never change.
if i do :
oB->Enable = true;
if (oB->Enable)
return true;
else
return false;
the function return always false.
must I change some properties for that Enable change state?
I use the DFK 72AUC02