public void Blit(ImageData source, Rectangle sourceRectangle, Point destination)
{
for (int y = 0; y < sourceRectangle.Height; y++)
{
for (int x = 0; x < sourceRectangle.Width; x++)
{
int sourceX = x + sourceRectangle.X;
int sourceY = y + sourceRectangle.Y;
int destinationX = x + destination.X;
int destinationY = y + destination.Y;
this.SetPixel(destinationX, destinationY, source.GetPixelColor(sourceX, sourceY));
}
}
}