コード例 #1
0
ファイル: NativeImage.cs プロジェクト: yourina/TizenFX
 public NativeImage(NativeImageInterface nativeImageInterface) : this(NDalicPINVOKE.NativeImage_New(NativeImageInterface.getCPtr(nativeImageInterface)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public FrameBufferImage(NativeImageInterface image) : this(Interop.FrameBufferImage.FrameBufferImage_New__SWIG_5(NativeImageInterface.getCPtr(image)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #3
0
 internal Texture(NativeImageInterface nativeImageInterface) : this(NDalicPINVOKE.Texture_New__SWIG_1(NativeImageInterface.getCPtr(nativeImageInterface)), true)
 {
     if (NDalicPINVOKE.SWIGPendingException.Pending)
     {
         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        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)");
        }
コード例 #5
0
        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)");
        }
コード例 #6
0
 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);
 }