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
You can use the Extent method of MagickImage for this. Below is a simple example:
using (MagickImage portrait = new MagickImage("xc:red", 50, 100))
{
  portrait.Extent(250, 250, Gravity.Center, new MagickColor("white"));
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles