mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-15 00:26:03 +08:00
Improve D2D1 types generation and other helper methods.
This commit is contained in:
21
src/Vortice.Win32.Graphics.Direct2D/BrushProperties.cs
Normal file
21
src/Vortice.Win32.Graphics.Direct2D/BrushProperties.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
// 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 BrushProperties
|
||||
{
|
||||
public BrushProperties(float opacity = 1.0f)
|
||||
{
|
||||
this.opacity = opacity;
|
||||
transform = Matrix3x2.Identity;
|
||||
}
|
||||
|
||||
public BrushProperties(float opacity, in Matrix3x2 transform)
|
||||
{
|
||||
this.opacity = opacity;
|
||||
this.transform = transform;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user