Results 1 to 4 of 4

Thread: Load an image into ICImagingControl

  1. #1
    Join Date
    Feb 2012
    Posts
    4

    Load an image into ICImagingControl

    I am trying to load an image into the control, so that the other functions of our applications can be used offline (i.e. without a camera attached to the computer). This is my code:

    Code:
                Stream st = new FileStream("temp", FileMode.Open);
    
                int byData = st.ReadByte();
                int i = 0;
    
    
                while (byData != -1)
                {
                    icCamSetup.ImageActiveBuffer.SetByteData(i++, (byte)byData);
                    byData = st.ReadByte();
                }
                st.Close();
                st.Dispose();
    Now, this works fine if a camera has already sent an image to the control. However, before that happens icCamSetup.ImageActiveBuffer is equal to 'null'. Is there a way to generate a dummy ImageActiveBuffer without a camera attached? Or is there a completely different way to deal with this that would work better?

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

    Re: Load an image into ICImagingControl

    Hello,

    There is no way to create a dummy or standalone image buffer. IC Imaging Control was not created for post image processing, therefore, this is not implemented.

    If you want to test image processing, you may create an array of bytes, that has the same structure than the image buffer array you use.
    Best regards
    Stefan
    IC Imaging Control Support

  3. #3
    Join Date
    Feb 2012
    Posts
    4

    Re: Load an image into ICImagingControl

    So there is no way to display an image?

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

    Re: Load an image into ICImagingControl

    Unfortunately not. I am very sorry for this.
    Best regards
    Stefan
    IC Imaging Control Support

Similar Threads

  1. Load a stored image
    By Michael.Lebert in forum IC Imaging Control .NET
    Replies: 1
    Last Post: November 16, 2010, 08:45:02
  2. Load image from memory to picture control MFC c++ vs2008
    By Jenno in forum IC Imaging Control C++ Class Library
    Replies: 1
    Last Post: November 23, 2009, 16:21:39
  3. ICImagingControl V3.0.5. and 10 bit GIGe image data
    By acanicio in forum IC Imaging Control ActiveX
    Replies: 5
    Last Post: November 16, 2009, 11:32:25
  4. How to load an image into the IC Imaging Control?
    By sapbucket in forum IC Imaging Control .NET
    Replies: 1
    Last Post: October 25, 2004, 11:10:18
  5. high cpu load with usb 2.0
    By Unregistered in forum IC Imaging Control ActiveX
    Replies: 0
    Last Post: April 29, 2004, 11:24:37

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
  •