public NativeImage(NativeImageInterface nativeImageInterface) : this(NDalicPINVOKE.NativeImage_New(NativeImageInterface.getCPtr(nativeImageInterface)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
public FrameBufferImage(NativeImageInterface image) : this(Interop.FrameBufferImage.FrameBufferImage_New__SWIG_5(NativeImageInterface.getCPtr(image)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
internal Texture(NativeImageInterface nativeImageInterface) : this(NDalicPINVOKE.Texture_New__SWIG_1(NativeImageInterface.getCPtr(nativeImageInterface)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
public void NativeImageInterfaceConstructor() { tlog.Debug(tag, $"NativeImageInterfaceConstructor START"); var testingTarget = new NativeImageSource(100, 50, NativeImageSource.ColorDepth.Default); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <NativeImageSource>(testingTarget, "Should be an Instance of NativeImageSource!"); tlog.Debug(tag, "getCPtr : " + NativeImageInterface.getCPtr(testingTarget)); testingTarget.Dispose(); tlog.Debug(tag, $"NativeImageInterfaceConstructor END (OK)"); }
public void NativeImageInterfaceConstructor() { tlog.Debug(tag, $"NativeImageInterfaceConstructor START"); using (ImageView view = new ImageView()) { var testingTarget = new NativeImageInterface(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "Should be not null!"); Assert.IsInstanceOf <NativeImageInterface>(testingTarget, "Should be an Instance of NativeImageInterface!"); testingTarget.Dispose(); } tlog.Debug(tag, $"NativeImageInterfaceConstructor END (OK)"); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(NativeImageInterface obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }