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()); }