Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: strech image to fill the transparent background using imagemagick.net

$
0
0
The size of the image including yellow area is 1741x2005.
While applying extent what should I pass as width & height of the image so that the image extends and covers the yellow area.
Following is my code.
static void Main(string[] args)
        {
            var inputFile = @"c:\Test.png";
            var outputFile = @"c:\outputTest.png";
            using (MagickImage image = new MagickImage(inputFile))
            {
                image.Extent(1741, 2005);
                image.Write(outputFile);
            }
        }

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>