Home > Back-end >  The mouse drawing set brush thickness to 5 how to do it on the screen antialiasing
The mouse drawing set brush thickness to 5 how to do it on the screen antialiasing

Time:10-03

Use GDI + drawing on the transparent window, set the anti-aliasing mode
Graphics Graphics (hDC);
Graphics. SetSmoothingMode (SmoothingModeAntiAlias);
Edge there will be a transparent color:

Don't know how to do you a great god can draw pictures on the screen and sawtooth can watch video and cannot have?

CodePudding user response:

Graphics. SetSmoothingMode (SmoothingModeAntiAlias);
Graphics. SetInterpolationMode (InterpolationModeHighQualityBicubic);
Give it a try

CodePudding user response:

Fun
reference 1 floor response:
graphics. SetSmoothingMode (SmoothingModeAntiAlias);
Graphics. SetInterpolationMode (InterpolationModeHighQualityBicubic);
Try

Still the same, I put the window so transparent:
LONG style=: : GetWindowLong (m_hWnd, GWL_EXSTYLE);
Style |=WS_EX_LAYERED;
Style=: : SetWindowLong (m_hWnd, GWL_EXSTYLE, style);
SetLayeredWindowAttributes (RGB (240, 240, 240), 1, 1);
  • Related