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

New Post: Padding out Thumbnails

$
0
0
You are looking for the Extent method:
using (MagickImage image = new MagickImage(Color.Yellow, 600, 1000))
{
  image.Resize(100, 100);
  image.BackgroundColor = MagickColor.Transparent;
  image.Extent(100, 100, Gravity.Center);
  image.Write("yellow.png");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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