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

New Post: add white bars/background wider than a portrait image (centering the photo)

$
0
0
Sorry I misread your question earlier. The extent method extents your image to the specified result. That means that if you want it to be 1200x629 you should specify that as the arguments for the extent method:
privatestaticvoid ForceLetterbox(MagickImage image)
{
  image.Extent(1200 , 629, Gravity.Center, new MagickColor("White"));
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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