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 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 intpCast() { tlog.Debug(tag, $"intpCast 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.cast(); tlog.Debug(tag, "value : " + result); testingTarget.Dispose(); tlog.Debug(tag, $"intpCast END (OK)"); }