コード例 #1
0
 public vector_ImgDiff(vector_ImgDiff other) : this(ImgCmpLibPINVOKE.new_vector_ImgDiff__SWIG_1(vector_ImgDiff.getCPtr(other)), true)
 {
     if (ImgCmpLibPINVOKE.SWIGPendingException.Pending)
     {
         throw ImgCmpLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public vector_ImgDiffEnumerator(vector_ImgDiff collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #3
0
 public void SetRange(int index, vector_ImgDiff values)
 {
     ImgCmpLibPINVOKE.vector_ImgDiff_SetRange(swigCPtr, index, vector_ImgDiff.getCPtr(values));
     if (ImgCmpLibPINVOKE.SWIGPendingException.Pending)
     {
         throw ImgCmpLibPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
    public vector_ImgDiff CompareImages(string ref_image, string test_image)
    {
        vector_ImgDiff ret = new vector_ImgDiff(ImgCmpLibPINVOKE.ImgCmp_CompareImages(swigCPtr, ref_image, test_image), true);

        if (ImgCmpLibPINVOKE.SWIGPendingException.Pending)
        {
            throw ImgCmpLibPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #5
0
    public static vector_ImgDiff Repeat(ImgDiff value, int count)
    {
        global::System.IntPtr cPtr = ImgCmpLibPINVOKE.vector_ImgDiff_Repeat(ImgDiff.getCPtr(value), count);
        vector_ImgDiff        ret  = (cPtr == global::System.IntPtr.Zero) ? null : new vector_ImgDiff(cPtr, true);

        if (ImgCmpLibPINVOKE.SWIGPendingException.Pending)
        {
            throw ImgCmpLibPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #6
0
    public vector_ImgDiff GetRange(int index, int count)
    {
        global::System.IntPtr cPtr = ImgCmpLibPINVOKE.vector_ImgDiff_GetRange(swigCPtr, index, count);
        vector_ImgDiff        ret  = (cPtr == global::System.IntPtr.Zero) ? null : new vector_ImgDiff(cPtr, true);

        if (ImgCmpLibPINVOKE.SWIGPendingException.Pending)
        {
            throw ImgCmpLibPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
コード例 #7
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(vector_ImgDiff obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }