コード例 #1
0
ファイル: Test.cs プロジェクト: Yanrishatum/UGif
 public static void main()
 {
     unchecked {
         global::haxe.io.Bytes    io   = global::sys.io.File.getBytes("jump_fall.gif");
         global::ugiflib.UGifFile file = global::ugiflib.UGifLib.read(io);
         global::haxe.Log.trace.__hx_invoke2_o(((double)(file.width)), global::haxe.lang.Runtime.undefined, default(double), new global::haxe.lang.DynamicObject(new int[] { 302979532, 1547539107, 1648581351, 1830310359 }, new object[] { "main", "ugiflib.Test", "Test.hx", new global::haxe.root.Array <object>(new object[] { file.height, file.frames }) }, new int[] { 1981972957 }, new double[] { ((double)(9)) }));
         global::sys.io.FileOutput @out = global::sys.io.File.write("jump_fall.edit.gif", default(global::haxe.lang.Null <bool>));
         new global::format.png.Writer(((global::haxe.io.Output)(@out))).write(global::format.png.Tools.build32BGRA((file.width * (file.frames as global::System.Array).Length), file.height, file.picture, default(global::haxe.lang.Null <int>)));
         @out.close();
     }
 }
コード例 #2
0
ファイル: File.cs プロジェクト: Yanrishatum/UGif
 public static void saveBytes(string path, global::haxe.io.Bytes bytes)
 {
     global::sys.io.FileOutput f = global::sys.io.File.write(path, new global::haxe.lang.Null <bool>(true, true));
     f.writeBytes(bytes, 0, bytes.length);
     f.close();
 }
コード例 #3
0
ファイル: File.cs プロジェクト: Yanrishatum/UGif
 public static void saveContent(string path, string content)
 {
     global::sys.io.FileOutput f = global::sys.io.File.write(path, new global::haxe.lang.Null <bool>(false, true));
     f.writeString(content);
     f.close();
 }