Author: spouliot
Date: 2007-03-14 08:11:50 -0500 (Wed, 14 Mar 2007)
New Revision: 74253
Modified:
trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/ChangeLog
trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs
Log:
2007-03-14 Sebastien Pouliot <[EMAIL PROTECTED]>
* GifCodecTest.cs: Add test cases for a GIF87a image - which is the
format that GDI+ save GIF files (even if the original was a GIF89a).
Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/ChangeLog
2007-03-14 13:10:25 UTC (rev 74252)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/ChangeLog
2007-03-14 13:11:50 UTC (rev 74253)
@@ -1,3 +1,8 @@
+2007-03-14 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * GifCodecTest.cs: Add test cases for a GIF87a image - which is the
+ format that GDI+ save GIF files (even if the original was a GIF89a).
+
2007-03-09 Sebastien Pouliot <[EMAIL PROTECTED]>
* MetafileTest.cs: New. Metafile unit tests.
Modified:
trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs
2007-03-14 13:10:25 UTC (rev 74252)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing.Imaging/GifCodecTest.cs
2007-03-14 13:11:50 UTC (rev 74253)
@@ -5,7 +5,7 @@
// Jordi Mas i Hernàndez ([EMAIL PROTECTED])
// Sebastien Pouliot <[EMAIL PROTECTED]>
//
-// Copyright (C) 2006 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2006, 2007 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
@@ -72,11 +72,10 @@
}
/* Checks bitmap features on a know 1bbp bitmap */
- [Test]
- public void Bitmap8bitsFeatures ()
+ /* Checks bitmap features on a know 1bbp bitmap */
+ private void Bitmap8bitsFeatures (string filename)
{
- string sInFile = getInFile ("bitmaps/nature24bits.gif");
- using (Bitmap bmp = new Bitmap (sInFile)) {
+ using (Bitmap bmp = new Bitmap (filename)) {
GraphicsUnit unit = GraphicsUnit.World;
RectangleF rect = bmp.GetBounds (ref unit);
@@ -95,10 +94,20 @@
}
[Test]
- public void Bitmap8bitsPixels ()
+ public void Bitmap8bitsFeatures_Gif89 ()
{
- string sInFile = getInFile ("bitmaps/nature24bits.gif");
- using (Bitmap bmp = new Bitmap (sInFile)) {
+ Bitmap8bitsFeatures (getInFile
("bitmaps/nature24bits.gif"));
+ }
+
+ [Test]
+ public void Bitmap8bitsFeatures_Gif87 ()
+ {
+ Bitmap8bitsFeatures (getInFile
("bitmaps/nature24bits87.gif"));
+ }
+
+ private void Bitmap8bitsPixels (string filename)
+ {
+ using (Bitmap bmp = new Bitmap (filename)) {
#if false
for (int x = 0; x < bmp.Width; x += 32) {
for (int y = 0; y < bmp.Height; y += 32)
@@ -127,6 +136,18 @@
}
[Test]
+ public void Bitmap8bitsPixels_Gif89 ()
+ {
+ Bitmap8bitsPixels (getInFile
("bitmaps/nature24bits.gif"));
+ }
+
+ [Test]
+ public void Bitmap8bitsPixels_Gif87 ()
+ {
+ Bitmap8bitsPixels (getInFile
("bitmaps/nature24bits87.gif"));
+ }
+
+ [Test]
[Category ("NotWorking")]
public void Bitmat8bitsData ()
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches