41 writes to Transform
System.Drawing.Common.Tests (35)
mono\System.Drawing\GraphicsTests.cs (8)
426Assert.Throws<ArgumentException>(() => g.Transform = matrix); 471g.Transform = new Matrix(); 514g.Transform = new Matrix(1, 0, 0, 1, 8, 8); 529g.Transform = new Matrix(0.5f, 0, 0, 0.25f, 0, 0); 545g.Transform = new Matrix(1, 0, 0, 1, 8, 8); 675g.Transform = new Matrix(1, 2, 3, 4, 5, 6); 685g.Transform = new Matrix(1, 2, 3, 4, 5, 6); 695g.Transform = new Matrix(1, 2, 3, 4, 5, 6);
mono\System.Imaging\MetafileTest.cs (1)
363g.Transform = m;
System\Drawing\Drawing2D\GraphicsPathTests.cs (1)
1773graphics.Transform = matrix;
System\Drawing\Graphics_GetContextTests.cs (5)
50graphics.Transform = initialTransform; 68graphics.Transform = initialTransform; 85graphics.Transform = initialTransform; 104graphics.Transform = initialTransform; 125graphics.Transform = initialTransform;
System\Drawing\GraphicsTests.Core.cs (1)
65graphics.Transform = matrix;
System\Drawing\GraphicsTests.cs (19)
1075graphics.Transform = matrix; 1092Assert.Throws<NullReferenceException>(() => graphics.Transform = null); 1103AssertExtensions.Throws<ArgumentException>(null, () => graphics.Transform = matrix); 1112AssertExtensions.Throws<ArgumentException>(null, () => graphics.Transform = matrix); 1125Assert.Throws<InvalidOperationException>(() => graphics.Transform = matrix); 1142AssertExtensions.Throws<ArgumentException>(null, () => graphics.Transform = matrix); 1151graphics.Transform = transform; 1191graphics.Transform = transform; 1208graphics.Transform = transform; 1300graphics.Transform = transform; 1320graphics.Transform = transform; 1374graphics.Transform = transform; 1392graphics.Transform = transform; 1457graphics.Transform = transform; 1477graphics.Transform = transform; 1743graphics.Transform = transform; 1808graphics.Transform = transform; 1823graphics.Transform = transform; 1839graphics.Transform = transform;
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
239glyphGraphics.Transform = m;
System.Windows.Forms.Primitives.Tests (3)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
24g.Transform = transform; 107g.Transform = transform;
System\Windows\Forms\DeviceContextScopeTests.cs (1)
43graphics.Transform = new Matrix(1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f);
System.Windows.Forms.Tests (2)
System\Windows\Forms\TextRendererTests.cs (2)
758graphics.Transform = matrix; 806graphics.Transform = matrix;
51 references to Transform
System.Drawing.Common.Tests (44)
mono\System.Drawing\GraphicsTests.cs (16)
385Assert.True(g.Transform.IsIdentity); 400float[] elements = g.Transform.Elements; 415Assert.True(g.Transform.IsIdentity); 546g.MultiplyTransform(g.Transform); 579g.MultiplyTransform(g.Transform); 677float[] elements = g.Transform.Elements; 687elements = g.Transform.Elements; 697elements = g.Transform.Elements; 917Assert.True(g.Transform.IsIdentity, message + ".Transform.IsIdentity"); 933Assert.False(g.Transform.IsIdentity, message + ".Transform.IsIdentity"); 968CheckMatrix("modified.Transform", g.Transform, 0.707f, 0.707f, -0.707f, 0.707f, 0, 0); 1001CheckMatrix("modified.Transform", g.Transform, 0.707f, 0.707f, -0.707f, 0.707f, 0, 0); 1011CheckMatrix("EndContainer.Transform", g.Transform, 0.707f, 0.707f, -0.707f, 0.707f, 0, 0); 1035CheckMatrix("modified.Transform", g.Transform, 0.707f, 0.707f, -0.707f, 0.707f, 0, 0); 1116CheckMatrix("modified.Transform", g.Transform, 0.707f, 0.707f, -0.707f, 0.707f, 0, 0); 1123CheckMatrix("restored1.Transform", g.Transform, 0.707f, 0.707f, -0.707f, 0.707f, 0, 0);
mono\System.Imaging\MetafileTest.cs (6)
347Assert.True(g.Transform.IsIdentity); 349Assert.False(g.Transform.IsIdentity); 352Matrix m = g.Transform; 355float[] elements = g.Transform.Elements; 364elements = g.Transform.Elements; 373Assert.True(g.Transform.IsIdentity);
System\Drawing\GraphicsTests.Core.cs (1)
58using (Matrix matrix = graphics.Transform)
System\Drawing\GraphicsTests.cs (21)
1124Assert.Throws<InvalidOperationException>(() => graphics.Transform); 1141AssertExtensions.Throws<ArgumentException>(null, () => graphics.Transform); 1152Assert.False(graphics.Transform.IsIdentity); 1155Assert.True(graphics.Transform.IsIdentity); 1192Matrix expectedTransform = graphics.Transform; 1196Assert.Equal(expectedTransform, graphics.Transform); 1209Matrix expectedTransform = graphics.Transform; 1213Assert.Equal(expectedTransform, graphics.Transform); 1301Matrix expectedTransform = graphics.Transform; 1305Assert.Equal(expectedTransform, graphics.Transform); 1321Matrix expectedTransform = graphics.Transform; 1325Assert.Equal(expectedTransform, graphics.Transform); 1375Matrix expectedTransform = graphics.Transform; 1379Assert.Equal(expectedTransform, graphics.Transform); 1393Matrix expectedTransform = graphics.Transform; 1397Assert.Equal(expectedTransform, graphics.Transform); 1458Matrix expectedTransform = graphics.Transform; 1462Assert.Equal(expectedTransform, graphics.Transform); 1478Matrix expectedTransform = graphics.Transform; 1482Assert.Equal(expectedTransform, graphics.Transform); 2817Assert.Equal(new Matrix(), graphics.Transform);
System.Windows.Forms (7)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (2)
1053else if (_links[0].VisualRegion?.GetRegionScans(e.GraphicsInternal.Transform) is { } regionRectangles 1319&& link.VisualRegion.GetRegionScans(g.Transform) is { } regionRectangles && regionRectangles.Length > 0)
System\Windows\Forms\Input\Cursor.cs (2)
253targetRect.X += (int)graphics.Transform.OffsetX; 254targetRect.Y += (int)graphics.Transform.OffsetY;
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (1)
152/// <see cref="Graphics.Clip"/> or <see cref="Graphics.Transform"/>.
System\Windows\Forms\Rendering\TextRenderer.cs (2)
641|| graphics.Transform is null 642|| graphics.Transform.IsIdentity,