/// /// Rectangle /// [StructLayout(LayoutKind.Explicit)] public struct Rect { [FieldOffset(0)] public int Left; [FieldOffset(4)] public int Top; [FieldOffset(8)] public int Right; [FieldOffset(12)] public int Bottom; } /// /// 해당 Rectangle영역의 색상을 반전 /// /// /// /// [DllImport("user32")] public static extern bool InvertRect(IntPtr hdc, ref Rect lpRect); 출저 : http://ehdrn.tistory.com/232