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