GRADIENT_TRIANGLE.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System.Runtime.InteropServices;
  2. namespace Microsoft.Win32
  3. {
  4. /// <summary>
  5. /// GRADIENT_TRIANGLE定义
  6. /// </summary>
  7. public static partial class NativeMethods
  8. {
  9. /// <summary>
  10. /// The GRADIENT_TRIANGLE structure specifies the index of three vertices in the pVertex array in the GradientFill function. These three vertices form one triangle.
  11. /// </summary>
  12. [StructLayout(LayoutKind.Sequential)]
  13. public struct GRADIENT_TRIANGLE
  14. {
  15. /// <summary>
  16. /// The first point of the triangle where sides intersect.
  17. /// </summary>
  18. uint Vertex1;
  19. /// <summary>
  20. /// The second point of the triangle where sides intersect.
  21. /// </summary>
  22. uint Vertex2;
  23. /// <summary>
  24. /// The third point of the triangle where sides intersect.
  25. /// </summary>
  26. uint Vertex3;
  27. /// <summary>
  28. /// 构造函数
  29. /// </summary>
  30. /// <param name="vertex1">第一个点</param>
  31. /// <param name="vertex2">第二个点</param>
  32. /// <param name="vertex3">第三个点</param>
  33. public GRADIENT_TRIANGLE(uint vertex1, uint vertex2, uint vertex3)
  34. {
  35. this.Vertex1 = vertex1;
  36. this.Vertex2 = vertex2;
  37. this.Vertex3 = vertex3;
  38. }
  39. }
  40. }
  41. }