Results 1 to 4 of 4

Thread: Help with ImageAvailableEvent handler

  1. #1
    Join Date
    May 2018
    Posts
    2

    Help with ImageAvailableEvent handler

    Hi,

    i need some help with the ImageAvailableEvent handler. I need to save a image after external trigger.
    I dont know how to save the picture automaticaly after i took the picture with external trigger.

    Thanks in advanced for your help

    Renado

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

    Re: Help with ImageAvailableEvent handler

    1.) Ic.LiveCaptureContinuous = true
    2.) In imageAvailable event handler: e.ImageBuffer.SaveImage(filename)
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    May 2018
    Posts
    2

    Re: Help with ImageAvailableEvent handler

    Hi Stefan thx for your support. But i think i doing something wrong. The picture is not automaticaly saved in my sppecified folder.
    This is what i did:

    private void WDMIAT_ImageAvailable(object sender, IAT.Imaging.WDMIAT.ImageAvailableEventArgs e)
    {
    try
    {
    string dateTime = DateTime.Now.ToString("yyyymmddHHmmss");

    for (int i = 1; i <= 1000; i++) ;
    e.ImageBuffer.SaveImage(@"C:/Users/lamren/Pictures/Phytec/dateTime" + "_" + "Cam1" + "_" + "_" + "test.jpg");


    }
    catch (Exception ex)
    {
    System.Diagnostics.Trace.WriteLine(ex.Message);
    }
    }

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

    Re: Help with ImageAvailableEvent handler

    Is "WDMIAT.LiveCaptureContinuous = true" done?
    Is the ImageAvailbe event handler the correct one? You can check that by double clicking the event handler in the WDMIAT properties in the design window of Visual Studio
    Best regards
    Stefan
    IC Imaging Control Support

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
  •