Improve D2D1 types generation and other helper methods.

This commit is contained in:
Amer Koleci
2022-12-06 10:57:28 +01:00
parent a67fab7cae
commit c1d457d5fd
56 changed files with 733 additions and 508 deletions

View File

@@ -0,0 +1,20 @@
// Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
using Win32.Graphics.Direct2D.Common;
namespace Win32.Graphics.Direct2D;
public partial struct ImageBrushProperties
{
public ImageBrushProperties(in RectF sourceRectangle,
ExtendMode extendModeX = ExtendMode.Clamp,
ExtendMode extendModeY = ExtendMode.Clamp,
InterpolationMode interpolationMode = InterpolationMode.Linear)
{
this.sourceRectangle = sourceRectangle;
this.extendModeX = extendModeX;
this.extendModeY = extendModeY;
this.interpolationMode = interpolationMode;
}
}