使用GDI+在透明視窗上畫圖,設定抗鋸齒模式
Graphics graphics(hDC);
graphics.SetSmoothingMode(SmoothingModeAntiAlias);
邊緣會出現透明色:

不知道各位大神怎么做到即可以在螢屏上畫圖又可以觀看視頻并且不能有鋸齒?
uj5u.com熱心網友回復:
graphics.SetSmoothingMode(SmoothingModeAntiAlias);graphics.SetInterpolationMode(InterpolationModeHighQualityBicubic);
試試吧
uj5u.com熱心網友回復:
還是一樣,我是這樣把視窗透明的:
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);
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/108779.html
標籤:其它技術問題
上一篇:求各位大佬幫忙解決一下
