using System.Drawing;
using System.Runtime.CompilerServices;
using TerraFX.Interop.Windows;
namespace ComputeSharp.D2D1.Extensions;
///
/// Helper methods for .
///
internal static class RECTExtensions
{
///
/// Creates a from a value.
///
/// The input value.
/// The resulting value.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Rectangle ToRectangle(this in RECT rect)
{
return Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom);
}
}