-
Is there any feature to combine two images based on center point? For example, I have a blank (white background) image and need to place another image on top of blank image. Output image size would always be size of blank image. |
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
Sep 4, 2020
Replies: 1 comment 1 reply
-
You can use the composite method for that: using (var background = new MagickImage(MagickColors.White, width, height))
{
using (var image = new MagickImage("image"))
{
background.Composite(image, Gravity.Center);
}
background.Write("output");
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
gitexplr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the composite method for that: