<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.1.25080.3" />

Matrix

A matrix is a special data type that contains between one and sixteen components. Every component of a matrix must be of the same type.
using System; using System.CodeDom.Compiler; using System.Diagnostics; using System.Runtime.CompilerServices; namespace Windows.Win32.Graphics.GdiPlus { [DebuggerDisplay("{Value}")] [GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")] internal readonly struct Matrix : IEquatable<Matrix> { internal readonly IntPtr Value; internal Matrix(IntPtr value) { Value = value; } public static implicit operator IntPtr(Matrix value) { return value.Value; } public static explicit operator Matrix(IntPtr value) { return new Matrix(value); } public static bool operator ==(Matrix left, Matrix right) { return left.Value == right.Value; } public static bool operator !=(Matrix left, Matrix right) { return !(left == right); } public bool Equals(Matrix other) { return Value == other.Value; } public override bool Equals(object obj) { if (obj is Matrix) { Matrix other = (Matrix)obj; return Equals(other); } return false; } public override int GetHashCode() { return Value.GetHashCode(); } public override string ToString() { DefaultInterpolatedStringHandler defaultInterpolatedStringHandler = new DefaultInterpolatedStringHandler(2, 1); defaultInterpolatedStringHandler.AppendLiteral("0x"); defaultInterpolatedStringHandler.AppendFormatted(Value, "x"); return defaultInterpolatedStringHandler.ToStringAndClear(); } } }