public void TestSimpleCopyRegion()
        {
            var canvasBitmap = new Bitmap(64, 64);
            var copyBitmap   = GenerateRainbowBitmap(32, 32);

            var sourceRectangle = new Rectangle(0, 0, 32, 32);
            var targetRectangle = new Rectangle(0, 0, 64, 64);

            FastBitmap.CopyRegion(copyBitmap, canvasBitmap, sourceRectangle, targetRectangle);

            BitmapSnapshot.Snapshot(canvasBitmap, TestContext);
        }
        public void TestSlicedDestinationCopyRegion()
        {
            // Have a copy operation that goes:
            //
            //       -src---
            // -dest-|-----|------
            // |     |xxxxx|     |
            // |     |xxxxx|     |
            // ------|-----|------
            //       -------
            //

            var canvasBitmap = new Bitmap(128, 32);
            var copyBitmap   = GenerateRainbowBitmap(32, 64);

            var sourceRectangle = new Rectangle(0, 0, 32, 64);
            var targetRectangle = new Rectangle(48, -16, 32, 64);

            FastBitmap.CopyRegion(copyBitmap, canvasBitmap, sourceRectangle, targetRectangle);

            BitmapSnapshot.Snapshot(canvasBitmap, TestContext);
        }