public static Bitmap FragmentBackSprites(Game game, Bitmap solvedImage) { Rectangle dimensions = new Rectangle(0, 0, 6400, 8); var originals = BackSprites.Originals(); var solved = BackSprites.Solved(); Brush brush = new SolidBrush(Color.FromArgb(152, 152, 240)); Bitmap bitmap2 = new Bitmap(dimensions.Width, dimensions.Height); return(CopyPaste(bitmap2, solvedImage, solved, originals, true, brush)); }
public static Bitmap DefragBackSprites(Game game, Bitmap originalImage, bool fillBackground = false) { var originals = BackSprites.Originals(); var solved = BackSprites.Solved(); Brush brush = new SolidBrush(Color.FromArgb(0, 0, 0)); Bitmap bitmap = new Bitmap(SolvedDimensionsBackSprites.Width, SolvedDimensionsBackSprites.Height); originalImage = FlattenImage(originalImage); return(CopyPaste(bitmap, originalImage, originals, solved, fillBackground, brush)); }