using System.Runtime.InteropServices; namespace Microsoft.Win32 { /// /// GRADIENT_TRIANGLE定义 /// public static partial class NativeMethods { /// /// The GRADIENT_TRIANGLE structure specifies the index of three vertices in the pVertex array in the GradientFill function. These three vertices form one triangle. /// [StructLayout(LayoutKind.Sequential)] public struct GRADIENT_TRIANGLE { /// /// The first point of the triangle where sides intersect. /// uint Vertex1; /// /// The second point of the triangle where sides intersect. /// uint Vertex2; /// /// The third point of the triangle where sides intersect. /// uint Vertex3; /// /// 构造函数 /// /// 第一个点 /// 第二个点 /// 第三个点 public GRADIENT_TRIANGLE(uint vertex1, uint vertex2, uint vertex3) { this.Vertex1 = vertex1; this.Vertex2 = vertex2; this.Vertex3 = vertex3; } } } }