Hello @Igor Felipe Pereira Gutierrez (CC0) ,
Welcome to Microsoft Q&A!
It is recommended to use Win32 api MagSetFullscreenColorEffect, here is a grayscale example. You can also modify the matrix to achieve multiple colors.
//using static Vanara.PInvoke.Magnification;
//using static Vanara.PInvoke.User32;
float redScale = 0.2126f, greenScale = 0.7152f, blueScale = 0.0722f;
var magEffectInvert = new MAGCOLOREFFECT(new[,] { // MagEffectInvert
{ redScale, redScale, redScale, 0.0f, 0.0f, },
{ greenScale, greenScale, greenScale, 0.0f, 0.0f, },
{ blueScale, blueScale, blueScale, 0.0f, 0.0f, },
{ 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, },
{ 0.0f, 0.0f, 0.0f, 0.0f, 1.0f }
});
MagInitialize();
MagSetFullscreenColorEffect(magEffectInvert);
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.