Gdi双缓冲窗口模式跟全屏模式差异

易语言 2020-02-22 16:24:02

Gdi双缓冲窗口模式跟全屏模式差异

结果发现双缓冲在全屏模式下占用大效率不太好。

Rectangle (Device, Rect.left + 150, Rect.top, Rect.right + 150, Rect.bottom) ' 填充矩形
SelectObject (Device, Object)
DeleteObject (M_Brush) ' 释放掉矩形的画刷颜色
M_Brush = CreateSolidBrush (#青绿) ' 创建画刷
Object = SelectObject (Device, M_Brush) ' 这是把矩形的画刷颜色载入
FrameRect (Device, Rect, M_Brush) ' 绘制矩型'
SelectObject (Device, Object)
DeleteObject (M_Brush) ' 释放掉矩形的画刷颜色