Example #1
0
        public static UIImage AddMarge(UIImage img, CGSize destinationSize)
        {
            var delta = destinationSize.Width - img.Size.Width;

            if (delta <= 0)
            {
                return(img);
            }
            var height = img.Size.Height;
            var width  = img.Size.Width;

            UIImage transpImg = UtilsiOS.ImageOfSize("transparent", new CGSize(delta, height));
            UIImage newImage  = UtilsiOS.MergeImages(transpImg, img);

            return(newImage);
        }