Exemple #1
0
        public void BitBlt(int x, int y, int nWidth, int nHeight, CBitmap srcBitmap, int xSrc, int ySrc, int dwRop)
        {
            if (_graphics == null)
            {
                return;
            }

            GameGraphics.DrawImage(_graphics, srcBitmap.GetBitmap(), x, y, nWidth, nHeight, xSrc, ySrc);
        }
Exemple #2
0
        public void CreateCompatibleDC(CBitmap bitmap)
        {
            Bitmap bmp = bitmap.GetBitmap();

            _graphics = Graphics.FromImage(bmp);
        }