コード例 #1
0
ファイル: AndroidFileAsset.cs プロジェクト: neutmute/emgucv
      public AndroidCacheFileAsset(Context context, String assertName, String cacheFolderPostfix, OverwriteMethod method)
      {
         String fileName = Path.GetFileName(assertName);
         fileName = Path.Combine(context.GetDir(cacheFolderPostfix, FileCreationMode.Private).AbsolutePath, fileName);
         _file = new FileInfo(fileName);
         _overwriteMethod = method;

         using(System.IO.Stream iStream = context.Assets.Open(assertName))
            WriteStream(iStream, FileFullPath, _overwriteMethod);

      }