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); } }
public void DrawImage(IBlit blit, Point pos, Rectangle srcrect) { DrawImage(blit, pos.X, pos.Y, srcrect.X, srcrect.Y, srcrect.Width, srcrect.Height); }
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); }
public void DrawImage(IBlit blit, Point pos) { DrawImage(blit, pos.X, pos.Y); }
public void DrawImage(IBlit blit, int x, int y, Rectangle srcrect) { DrawImage(blit, x, y, srcrect.X, srcrect.Y, srcrect.Width, srcrect.Height); }
public void DrawImage(IBlit blit, int x, int y) { var size = blit.GetSize(); DrawImage(blit, x, y, 0, 0, size.Width, size.Height); }
public void DrawImage(IBlit blit, Point pos, Rectangle srcrect) { DrawImage(blit, pos.X, pos.Y, srcrect); }
public void DrawImage(IBlit blit, int x, int y, Rectangle srcrect) { var image = blit.GetBitmap(); _graphics.DrawImage(image, x, y, srcrect, GraphicsUnit.Pixel); }
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)); }