public void NDalicGetAlphaOffsetAndMask() { tlog.Debug(tag, $"NDalicGetAlphaOffsetAndMask START"); intp dummy1 = new intp(); dummy1.assign(1); intp dummy2 = new intp(); dummy2.assign(10); try { NDalic.GetAlphaOffsetAndMask(PixelFormat.BGR8888, dummy1.cast(), dummy2.cast()); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } dummy1.Dispose(); dummy2.Dispose(); tlog.Debug(tag, $"NDalicGetAlphaOffsetAndMask END (OK)"); }
public static intp frompointer(SWIGTYPE_p_int t) { global::System.IntPtr cPtr = Interop.intp.frompointer(SWIGTYPE_p_int.getCPtr(t)); intp ret = (cPtr == global::System.IntPtr.Zero) ? null : new intp(cPtr, false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public void intpConstructor() { tlog.Debug(tag, $"intpConstructor START"); var testingTarget = new intp(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <intp>(testingTarget, "Should be an Instance of intp!"); testingTarget.Dispose(); tlog.Debug(tag, $"intpConstructor END (OK)"); }
public void intpFrompointer() { tlog.Debug(tag, $"intpFrompointer START"); using (intp data = new intp()) { var testingTarget = intp.frompointer(data.cast()); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <intp>(testingTarget, "Should be an Instance of intp!"); testingTarget.Dispose(); } tlog.Debug(tag, $"intpFrompointer END (OK)"); }
public void intpValue() { tlog.Debug(tag, $"intpValue START"); var testingTarget = new intp(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <intp>(testingTarget, "Should be an Instance of intp!"); var result = testingTarget.value(); tlog.Debug(tag, "value : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"intpValue END (OK)"); }
public void intpAssign() { tlog.Debug(tag, $"intpAssign START"); var testingTarget = new intp(); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <intp>(testingTarget, "Should be an Instance of intp!"); try { testingTarget.assign(1); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception : Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"intpAssign END (OK)"); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(intp obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }