OpenCvSharp.NativeMethods.core_FileNode_toInt C# (CSharp) Method

core_FileNode_toInt() private method

private core_FileNode_toInt ( IntPtr obj ) : int
obj System.IntPtr
return int
        public static extern int core_FileNode_toInt(IntPtr obj);
        [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]

Usage Example

コード例 #1
0
        /// <summary>
        /// Returns the node content as an integer. If the node stores floating-point number, it is rounded.
        /// </summary>
        /// <returns></returns>
        public int ToInt32()
        {
            ThrowIfDisposed();

            NativeMethods.HandleException(
                NativeMethods.core_FileNode_toInt(ptr, out var ret));

            GC.KeepAlive(this);
            return(ret);
        }
NativeMethods