6 writes to NativeMatrix
System.Drawing.Common (6)
System\Drawing\Drawing2D\Matrix.cs (6)
16NativeMatrix = matrix; 23NativeMatrix = matrix; 34private Matrix(GdiPlus.Matrix* nativeMatrix) => NativeMatrix = nativeMatrix; 61NativeMatrix = matrix; 75NativeMatrix = matrix; 94NativeMatrix = null;
53 references to NativeMatrix
System.Drawing.Common (53)
System\Drawing\Drawing2D\GraphicsPath.cs (1)
811PInvokeGdiPlus.GdipTransformPath(_nativePath, matrix.NativeMatrix).ThrowIfFailed();
System\Drawing\Drawing2D\LinearGradientBrush.cs (3)
290PInvokeGdiPlus.GdipGetLineTransform(NativeLineGradient, matrix.NativeMatrix).ThrowIfFailed(); 297PInvokeGdiPlus.GdipSetLineTransform(NativeLineGradient, value.NativeMatrix).ThrowIfFailed(); 315PInvokeGdiPlus.GdipMultiplyLineTransform(NativeLineGradient, matrix.NativeMatrix, (GdiPlus.MatrixOrder)order).ThrowIfFailed();
System\Drawing\Drawing2D\Matrix.cs (31)
87if (NativeMatrix is not null) 91PInvokeGdiPlus.GdipDeleteMatrix(NativeMatrix); 103PInvokeGdiPlus.GdipCloneMatrix(NativeMatrix, &matrix).ThrowIfFailed(); 126PInvokeGdiPlus.GdipGetMatrixElements(NativeMatrix, (float*)&matrix).ThrowIfFailed(); 133NativeMatrix, 151PInvokeGdiPlus.GdipGetMatrixElements(NativeMatrix, m).ThrowIfFailed(); 173NativeMatrix, 186if (matrix.NativeMatrix == NativeMatrix) 189PInvokeGdiPlus.GdipMultiplyMatrix(NativeMatrix, matrix.NativeMatrix, (GdiPlus.MatrixOrder)order).ThrowIfFailed(); 198PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, offsetX, offsetY, (GdiPlus.MatrixOrder)order).ThrowIfFailed(); 206PInvokeGdiPlus.GdipScaleMatrix(NativeMatrix, scaleX, scaleY, (GdiPlus.MatrixOrder)order).ThrowIfFailed(); 214PInvokeGdiPlus.GdipRotateMatrix(NativeMatrix, angle, (GdiPlus.MatrixOrder)order).ThrowIfFailed(); 224status = PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, point.X, point.Y, (GdiPlus.MatrixOrder)order); 225status |= PInvokeGdiPlus.GdipRotateMatrix(NativeMatrix, angle, (GdiPlus.MatrixOrder)order); 226status |= PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, -point.X, -point.Y, (GdiPlus.MatrixOrder)order); 230status = PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, -point.X, -point.Y, (GdiPlus.MatrixOrder)order); 231status |= PInvokeGdiPlus.GdipRotateMatrix(NativeMatrix, angle, (GdiPlus.MatrixOrder)order); 232status |= PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, point.X, point.Y, (GdiPlus.MatrixOrder)order); 241PInvokeGdiPlus.GdipShearMatrix(NativeMatrix, shearX, shearY, GdiPlus.MatrixOrder.MatrixOrderPrepend).ThrowIfFailed(); 247PInvokeGdiPlus.GdipShearMatrix(NativeMatrix, shearX, shearY, (GdiPlus.MatrixOrder)order).ThrowIfFailed(); 253PInvokeGdiPlus.GdipInvertMatrix(NativeMatrix).ThrowIfFailed(); 275NativeMatrix, 304NativeMatrix, 333NativeMatrix, 367NativeMatrix, 380PInvokeGdiPlus.GdipIsMatrixInvertible(NativeMatrix, &invertible).ThrowIfFailed(); 391PInvokeGdiPlus.GdipIsMatrixIdentity(NativeMatrix, &identity).ThrowIfFailed(); 404NativeMatrix, 405matrix2.NativeMatrix,
System\Drawing\Drawing2D\PathGradientBrush.cs (3)
317PInvokeGdiPlus.GdipGetPathGradientTransform(NativePathGradient, matrix.NativeMatrix).ThrowIfFailed(); 324PInvokeGdiPlus.GdipSetPathGradientTransform(NativePathGradient, value.NativeMatrix).ThrowIfFailed(); 343matrix.NativeMatrix,
System\Drawing\Graphics.cs (3)
429CheckStatus(PInvokeGdiPlus.GdipGetWorldTransform(NativeGraphics, matrix.NativeMatrix)); 434CheckStatus(PInvokeGdiPlus.GdipSetWorldTransform(NativeGraphics, value.NativeMatrix)); 627CheckStatus(PInvokeGdiPlus.GdipMultiplyWorldTransform(NativeGraphics, matrix.NativeMatrix, (GdiPlus.MatrixOrder)order));
System\Drawing\Pen.cs (4)
428PInvokeGdiPlus.GdipGetPenTransform(NativePen, matrix.NativeMatrix).ThrowIfFailed(); 441PInvokeGdiPlus.GdipSetPenTransform(NativePen, value.NativeMatrix).ThrowIfFailed(); 468if (matrix.NativeMatrix is null) 474PInvokeGdiPlus.GdipMultiplyPenTransform(NativePen, matrix.NativeMatrix, (GdiPlus.MatrixOrder)order).ThrowIfFailed();
System\Drawing\PointerExtensions.cs (1)
13public static GdiPlus.Matrix* Pointer(this Matrix? matrix) => matrix is null ? null : matrix.NativeMatrix;
System\Drawing\Region.cs (3)
212CheckStatus(PInvokeGdiPlus.GdipTransformRegion(NativeRegion, matrix.NativeMatrix)); 340matrix.NativeMatrix)); 355matrix.NativeMatrix));
System\Drawing\TextureBrush.cs (4)
108PInvokeGdiPlus.GdipGetTextureTransform((GpTexture*)NativeBrush, matrix.NativeMatrix).ThrowIfFailed(); 115PInvokeGdiPlus.GdipSetTextureTransform((GpTexture*)NativeBrush, value.NativeMatrix).ThrowIfFailed(); 164if (matrix.NativeMatrix is null) 171matrix.NativeMatrix,