/[gr2lib]/trunk/gr2lib_UnitTest/Program.cs
ViewVC logotype

Diff of /trunk/gr2lib_UnitTest/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib_UnitTest/Program.cs	2010/07/15 13:07:44	71
+++ trunk/gr2lib_UnitTest/Program.cs	2010/07/15 14:22:00	72
@@ -15,7 +15,7 @@
     class Program
     {
         static void Main(string[] args)
-        {
+        {            
             string GrannyFilename = shared.GRANNY_TEST_FILE;
             try
             {
@@ -67,6 +67,12 @@
 
                     grnfileinfo info = grnfileinfo.ReadFromFile(GrannyFilename);
 
+                    #region Read FromFileName
+                    Console.WriteLine();
+                    Console.WriteLine("From File Name: ");
+                    Console.WriteLine("\t" + info.FromFileName);
+                    #endregion
+
                     #region Read ArtToolInfo
                     Console.WriteLine();
                     Console.WriteLine("Art Tool Data:");
@@ -96,6 +102,28 @@
 
                     Console.WriteLine("\tExporter ExtendedData: " + info.ExporterInfo.ExtendedData);
                     #endregion
+
+                    #region Read Textures
+                    Console.WriteLine();
+                    Console.WriteLine("Texture List:");
+                    foreach (Texture t in info.Textures)
+                    {
+                        Console.WriteLine("\tName: " + t.FromFileName);
+                        Console.WriteLine("\tType: " + t.TextureType);
+                        Console.WriteLine("\tWidth: " + t.Width);
+                        Console.WriteLine("\tHeight: " + t.Height);
+                        Console.WriteLine("\tEncoding: " + t.Encoding);
+                        Console.WriteLine("\tSubFormat: " + t.SubFormat);
+                        // layout
+                        Console.WriteLine("\tBytes Per Pixel: " + t.Layout.BytesPerPixel);
+                        Console.WriteLine("\tShiftForComponent: " + new arraytostring<int, int[]>(t.Layout.ShiftForComponent));
+                        Console.WriteLine("\tBitsForComponent: " + new arraytostring<int, int[]>(t.Layout.BitsForComponent));
+                        // images
+                        Console.WriteLine("\tExtendedData: " + t.ExtendedData);
+                        Console.WriteLine();
+                    }
+                    #endregion
+
                 }
                 #endregion
 

 

  ViewVC Help
Powered by ViewVC 1.1.22