Summary description for DrawingTest.
Inheritance: IDisposable
Example #1
0
		public void SetUp() {
			t = DrawingTest.Create(512, 512);
		}
Example #2
0
		public virtual void SetUp(string ownerClass) {
			t = DrawingTest.Create(512, 512, ownerClass);

			// hashtable of differents tolerance values for specified tests. (for fft comparer)
			st["DrawArcTest:6"] = TOLERANCE * 2.5f;
			st["DrawCurveTestF:4"] = TOLERANCE * 2f;
			st["DrawPolygonPoint:2"] = TOLERANCE * 2f;
			st["DrawPolygonPointF:2"] = TOLERANCE * 2f;
			st["DrawStringFloatFormat:2"] = TOLERANCE * 2f; // in .net the font is shmoothed
			st["DrawStringFloatFormat:4"] = TOLERANCE * 2.5f; // in .net the font is shmoothed
			st["DrawStringFloatFormat:6"] = TOLERANCE * 2.5f; // in .net the font is shmoothed
			st["RotateTransformAngleMatrixOrder1:2"] = TOLERANCE * 2f; // Line width problem
			st["ScaleTransformFloatMatrixOrder:2"] = TOLERANCE * 2f; // Line width problem
			st["TranslateTransformAngleMatrixOrder:2"] = TOLERANCE * 2f; // Line width problem
			t.SpecialTolerance = st;
		}
Example #3
0
		public virtual void SetUp() {
			t = DrawingTest.Create(512, 512, "GraphicsFixtureGraphicsState");
		}
Example #4
0
		public virtual void SetUp(string ownerClass) {
			t = DrawingTest.Create(512, 512, ownerClass);
		}
Example #5
0
File: Pen.cs Project: nlhepler/mono
		public void SetUp () {
			t = DrawingTest.Create (256, 256);
			p = new Pen (Color.Blue);
			p.Width = 10;
			DrawingTest.ShowForms = false;
		}
Example #6
0
		public virtual void SetUp(string ownerClass) {
			t = DrawingTest.Create(512, 512, ownerClass);
			t.Graphics.InterpolationMode = InterpolationMode.NearestNeighbor;

			// hashtable of differents tolerance values for specified tests.
		}
Example #7
0
		public void SetUp () {
			t = DrawingTest.Create (256, 256);
			Image im=new Bitmap ("Bitmap1.png"); 
			t.Graphics.DrawImageUnscaled (im, 0, 0);
		}
Example #8
0
		public void SetUp () {
			t = DrawingTest.Create (64, 64);
			Bitmap b = new Bitmap ("Bitmap1.png");
			t.Graphics.DrawImageUnscaled (b, 0, 0);
			DrawingTest.ShowForms = false;
		}
Example #9
0
		public void SetUp () {
			DrawingTest.ShowForms = false;
			t = DrawingTest.Create (512, 512);
			p = new Pen (Color.Blue);
			p.Width = 2;
		}
Example #10
0
		public void SetUp ()
		{
			t = DrawingTest.Create (1000, 1000);
			rect = new RectangleF (50, 50, 50, 50);
			r = new Region(rect);
		}
Example #11
0
		public virtual void SetUp(string ownerClass) {
			t = DrawingTest.Create(512, 512, ownerClass);
			bmp = Bitmap.FromFile("bitmap50.png");
			bmp2 = Bitmap.FromFile("bitmap25.png");
		}