コード例 #1
0
        private void FillOpaqueRectangleW32(Color color, int x, int y, int width, int height)
        {
            // todo: check that width and height are exact
            RECT rect = new RECT {
                left = x, top = y, right = x + width, bottom = y + height
            };
            var brush = objectCache.GetSolidBrush(color);

            Win32API.FillRect(hdc, ref rect, brush);
        }