Exemple #1
0
        public void DrawImage(IBlit blit, int x, int y, int srcx, int srcy,
                              int srcwidth, int srcheight)
        {
            var fast         = blit as BlitFast;
            var internalBlit = fast ?? new BlitFast(blit.GetBitmap());

            Lock();
            if (internalBlit._canBeTransparent)
            {
                InternalDrawImageAlpha(internalBlit, x, y, srcx, srcy, srcwidth, srcheight);
            }
            else
            {
                InternalDrawImage(internalBlit, x, y, srcx, srcy, srcwidth, srcheight);
            }
        }
Exemple #2
0
 public void DrawImage(IBlit blit, Point pos, Rectangle srcrect)
 {
     DrawImage(blit, pos.X, pos.Y, srcrect.X, srcrect.Y,
               srcrect.Width, srcrect.Height);
 }
Exemple #3
0
 public void DrawImage(IBlit blit, Point pos, int srcx, int srcy,
                       int srcwidth, int srcheight)
 {
     DrawImage(blit, pos.X, pos.Y, srcx, srcy, srcwidth, srcheight);
 }
Exemple #4
0
 public void DrawImage(IBlit blit, Point pos)
 {
     DrawImage(blit, pos.X, pos.Y);
 }
Exemple #5
0
 public void DrawImage(IBlit blit, int x, int y, Rectangle srcrect)
 {
     DrawImage(blit, x, y, srcrect.X, srcrect.Y, srcrect.Width, srcrect.Height);
 }
Exemple #6
0
        public void DrawImage(IBlit blit, int x, int y)
        {
            var size = blit.GetSize();

            DrawImage(blit, x, y, 0, 0, size.Width, size.Height);
        }
Exemple #7
0
 public void DrawImage(IBlit blit, Point pos, Rectangle srcrect)
 {
     DrawImage(blit, pos.X, pos.Y, srcrect);
 }
Exemple #8
0
        public void DrawImage(IBlit blit, int x, int y, Rectangle srcrect)
        {
            var image = blit.GetBitmap();

            _graphics.DrawImage(image, x, y, srcrect, GraphicsUnit.Pixel);
        }
Exemple #9
0
 public void DrawImage(IBlit blit, int x, int y, int srcx, int srcy, int srcwidth, int srcheight)
 {
     DrawImage(blit, x, y, new Rectangle(srcx, srcy, srcwidth, srcheight));
 }