public void DrawImage(CDC DCBuffer, int left, int top) { if (_bitmap == null) { return; } GameGraphics.DrawImage(DCBuffer.GetGraphics(), _bitmap, left, top, GetWidth(), GetHeight(), 0, 0); }
public void CreateCompatibleBitmap(CDC dc, int width, int height) { if (_bitmap != null) { return; } _bitmap = new Bitmap(width, height, dc.GetGraphics()); }
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); }