예제 #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);
            }
        }
예제 #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);
 }
예제 #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);
 }
예제 #4
0
 public void DrawImage(IBlit blit, Point pos)
 {
     DrawImage(blit, pos.X, pos.Y);
 }
예제 #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);
 }
예제 #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);
        }
예제 #7
0
 public void DrawImage(IBlit blit, Point pos, Rectangle srcrect)
 {
     DrawImage(blit, pos.X, pos.Y, srcrect);
 }
예제 #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);
        }
예제 #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));
 }