home *** CD-ROM | disk | FTP | other *** search
/ Xentax forum attachments archive / xentax.7z / 7356 / GladiusPS2ImageExtractor.7z / GladiusPS2ImageExtractor / ReadMe.txt < prev    next >
Encoding:
Text File  |  2008-12-09  |  3.4 KB  |  84 lines

  1. // ==========================================================
  2. // TargaImage
  3. //
  4. // Design and implementation by
  5. // - David Polomis (paloma_sw@cox.net)
  6. //
  7. //
  8. // This source code, along with any associated files, is licensed under
  9. // The Code Project Open License (CPOL) 1.02
  10. // A copy of this license can be found in the CPOL.html file 
  11. // which was downloaded with this source code
  12. // or at http://www.codeproject.com/info/cpol10.aspx
  13. //
  14. // 
  15. // COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
  16. // WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  17. // INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS
  18. // FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
  19. // NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE
  20. // OF THE COVERED CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE
  21. // DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY
  22. // OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING,
  23. // REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN
  24. // ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS
  25. // AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
  26. //
  27. // Use at your own risk!
  28. //
  29. // ==========================================================
  30.  
  31.  
  32. .NET Targa Image Reader
  33. Current: C# (C# 1.0, C# 2.0, C# 3.0, C#), Windows (Windows, WinXP), .NET (.NET, .NET 3.5, .NET 3.0, .NET 2.0), GDI+, WebForms, VS2008, Dev, Intermediate
  34.  
  35.  
  36. Loads Targa image files into a Bitmap using pure .NET code
  37.  
  38. TargaImage is availble on CodeProject.com
  39.  
  40. http://www.codeproject.com/KB/GDI-plus/dotnettargareader.aspx
  41.  
  42.  
  43. TargaImage was created with Visual Studio 2008 Standard using C# 3.0 and the .NET Framework 2.0
  44.  
  45.  
  46. To use TargaImage copy the TargaImage.dll file from the Release folder in the Bin folder to your own project.
  47. Then include a reference to TargaImage.dll in your project.
  48.  
  49. To load a targa image call the LoadTargaImage() method of the Paloma.TargaImage class.
  50. Or if you want access to the image properties create an instance of the TargaImage class.
  51.  
  52. EXAMPLES:
  53.     
  54.  
  55.     //   C# Sample   
  56.     //   Loads a targa image and assigns it to the Image of a picturebox control.
  57.     this.PictureBox1.Image = Paloma.TargaImage.LoadTargaImage(@"c:\targaimage.tga");
  58.     
  59.     //   Creates an instance of the TargaImage class with the specifed file
  60.     //   displays a few targa properties and then assigns the targa image
  61.     //   to the Image of a picturebox control
  62.     Paloma.TargaImage tgaImage = new Paloma.TargaImage(@"c:\targaimage.tga");
  63.     this.Label1.Text = tgaImage.Format.ToString();
  64.     this.Label2.Text = tgaImage.Header.ImageType.ToString();
  65.     this.Label3.Text = tgaImage.Header.PixelDepth.ToString();
  66.     this.PictureBox1.Image = Paloma.TargaImage.Image;
  67.     
  68.     
  69.     
  70.     '   VB.NET Sample 
  71.     '   Loads a targa image and assigns it to the Image of a picturebox control.
  72.     Me.PictureBox1.Image = Paloma.TargaImage.LoadTargaImage("c:\targaimage.tga")
  73.  
  74.     
  75.     '   Creates an instance of the TargaImage class with the specifed file
  76.     '   displays a few targa properties and then assigns the targa image
  77.     '   to the Image of a picturebox control
  78.     Dim tgaImage As New Paloma.TargaImage("c:\targaimage.tga")
  79.     Me.Label1.Text = tgaImage.Format.ToString()
  80.     Me.Label2.Text = tgaImage.Header.ImageType.ToString()
  81.     Me.Label3.Text = tgaImage.Header.PixelDepth.ToString()
  82.     Me.PictureBox1.Image = Paloma.TargaImage.Image
  83.  
  84.