OpenCvSharp.NativeMethods.core_FileStorage_open C# (CSharp) Method

core_FileStorage_open() private method

private core_FileStorage_open ( IntPtr obj, [ filename, int flags, [ encoding ) : int
obj System.IntPtr
filename [
flags int
encoding [
return int
        public static extern int core_FileStorage_open(
            IntPtr obj, [MarshalAs(UnmanagedType.LPStr)] string filename, 
            int flags, [MarshalAs(UnmanagedType.LPStr)] string encoding);
        [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]

Usage Example

コード例 #1
0
        /// <summary>
        /// operator that performs PCA. The previously stored data, if any, is released
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="flags"></param>
        /// <param name="encoding">Encoding of the file. Note that UTF-16 XML encoding is not supported
        /// currently and you should use 8-bit encoding instead of it.</param>
        /// <returns></returns>
        public virtual bool Open(string fileName, Mode flags, string encoding = null)
        {
            ThrowIfDisposed();
            if (fileName == null)
            {
                throw new ArgumentNullException(nameof(fileName));
            }
            int ret = NativeMethods.core_FileStorage_open(ptr, fileName, (int)flags, encoding);

            return(ret != 0);
        }
All Usage Examples Of OpenCvSharp.NativeMethods::core_FileStorage_open
NativeMethods