예제 #1
0
        public Bitmap Apply(Bitmap bitmap, int scale)
        {
            Initialize();
            var resizedImage       = ImagesHelper.ResizeImage(bitmap, 8);
            var repeatedEmbroidery = ImagesHelper.RepeatToFitSize(embroidery, resizedImage.Width, resizedImage.Height);
            var result             = ImagesHelper.MergeBitmaps(repeatedEmbroidery, resizedImage);

            return(result);
        }
예제 #2
0
        public Bitmap Apply(Bitmap bitmap, int scale)
        {
            Initialize();
            var resizedImage  = ImagesHelper.ResizeImage(bitmap, 8);
            var darkenImage   = ImagesHelper.Adjust(resizedImage, 0.4f, 1, 1);
            var repeatedTiles = ImagesHelper.RepeatToFitSize(tiles, resizedImage.Width, resizedImage.Height);
            var repeatedMask  = ImagesHelper.RepeatToFitSize(mask, resizedImage.Width, resizedImage.Height);
            var darkenLayer   = ImagesHelper.ApplyAlphaMask(darkenImage, repeatedMask);
            var result        = ImagesHelper.MergeBitmaps(darkenLayer, repeatedTiles, resizedImage);

            return(result);
        }