123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- using System.Drawing;
- using System.Runtime.InteropServices;
- namespace Microsoft.Win32
- {
-
-
-
- public static partial class NativeMethods
- {
-
-
-
-
-
-
-
-
-
-
-
-
- [StructLayout(LayoutKind.Sequential)]
- public struct TRIVERTEX
- {
-
-
-
- int x;
-
-
-
- int y;
-
-
-
- ushort Red;
-
-
-
- ushort Green;
-
-
-
- ushort Blue;
-
-
-
- ushort Alpha;
-
-
-
-
-
-
-
-
-
- public TRIVERTEX(int x, int y, ushort red, ushort green, ushort blue, ushort alpha)
- {
- this.x = x;
- this.y = y;
- this.Red = red;
- this.Green = green;
- this.Blue = blue;
- this.Alpha = alpha;
- }
-
-
-
-
-
-
- public TRIVERTEX(int x, int y, Color color)
- {
- this.x = x;
- this.y = y;
- this.Red = color.R;
- this.Green = color.G;
- this.Blue = color.B;
- this.Alpha = color.A;
- }
-
-
-
-
-
- public TRIVERTEX(Point pt, Color color)
- {
- this.x = pt.X;
- this.y = pt.Y;
- this.Red = color.R;
- this.Green = color.G;
- this.Blue = color.B;
- this.Alpha = color.A;
- }
- }
- }
- }
|