Rect
struct Rect
Contains a set of four floating-point numbers that represent the location and size of a rectangle.
using System.CodeDom.Compiler;
using System.Drawing;
using System.Runtime.CompilerServices;
namespace Windows.Win32.Graphics.GdiPlus
{
[GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal struct Rect
{
internal int X;
internal int Y;
internal int Width;
internal int Height;
public static implicit operator Rectangle(Rect rect)
{
return Unsafe.As<Rect, Rectangle>(ref rect);
}
public static implicit operator Rect(Rectangle rectangle)
{
return Unsafe.As<Rectangle, Rect>(ref rectangle);
}
public static explicit operator RectF(Rect rect)
{
RectF result = default(RectF);
result.X = (float)rect.X;
result.Y = (float)rect.Y;
result.Width = (float)rect.Width;
result.Height = (float)rect.Height;
return result;
}
}
}