Results 1 to 2 of 2

Thread: OverlayBitmap Enable Property always false in ActiveX component

  1. #1
    Join Date
    Jun 2017
    Posts
    1

    Question OverlayBitmap Enable Property always false in ActiveX component

    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 :

    Code:
    void PM_Camera_ImagingSource::SetupOverlay(OverlayBitmap* 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
    Code:
    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 :

    Code:
    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

  2. #2
    Join Date
    Jan 2003
    Location
    Bremen, Germany
    Posts
    4,898

    Re: OverlayBitmap Enable Property always false in ActiveX component

    I suggest to test, whether you can draw into the overlay at the device path and see the drawing. If that works, ignore the return values.
    Best regards
    Stefan
    IC Imaging Control Support

Similar Threads

  1. loadDeviceStateFromFile fails when bOpenDev is set to false
    By frapargo in forum IC Imaging Control C++ Class Library
    Replies: 7
    Last Post: September 24, 2012, 15:25:33
  2. RS232 Component
    By Unregistered in forum MontiVision Development Kit
    Replies: 0
    Last Post: September 19, 2008, 22:55:42
  3. Component Video Input
    By Kay in forum IC Imaging Control C++ Class Library
    Replies: 3
    Last Post: April 19, 2005, 08:42:25
  4. Memory Address appears in component
    By Unregistered in forum IC Imaging Control ActiveX
    Replies: 1
    Last Post: December 13, 2002, 15:48:20
  5. All .xxxAvailable are false
    By Unregistered in forum IC Imaging Control ActiveX
    Replies: 8
    Last Post: June 25, 2002, 11:46:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •