Пример #1
0
        public static void ChangeColorEffect(float[,] matrix)
        {
            ColorEffect colorEffect = new ColorEffect(matrix);

            if (!NativeMethods.SetMagnificationDesktopColorEffect(ref colorEffect))
            {
                var inner = new Exception("SetMagnificationDesktopColorEffect()", Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()));
                throw new CannotChangeColorEffectException("An error occured while applying a color effect. Another application using the same API might be interfering...", inner);
            }
        }
Пример #2
0
 public static extern bool MagSetFullscreenColorEffect(ref ColorEffect pEffect);
Пример #3
0
 public static extern bool SetMagnificationDesktopColorEffect(ref ColorEffect pEffect);
Пример #4
0
 public static extern bool MagGetColorEffect(IntPtr hwnd, ref ColorEffect pEffect);
Пример #5
0
 public static extern bool GetMagnificationDesktopColorEffect(out ColorEffect pEffect);