示例#1
0
        public void DrawImage(CDC DCBuffer, int left, int top)
        {
            if (_bitmap == null)
            {
                return;
            }

            GameGraphics.DrawImage(DCBuffer.GetGraphics(), _bitmap, left, top, GetWidth(), GetHeight(), 0, 0);
        }
示例#2
0
        public void CreateCompatibleBitmap(CDC dc, int width, int height)
        {
            if (_bitmap != null)
            {
                return;
            }

            _bitmap = new Bitmap(width, height, dc.GetGraphics());
        }
示例#3
0
        public void DrawText(Graphics g, string szUserInfo, int xpos, int ypos, int flags, Color color)
        {
            CDC dc = new CDC();

            dc.SetGraphics(g);

            dc.SetTextColor(color);

            dc.DrawText(szUserInfo, xpos, ypos, flags);
        }