Replies: 1 comment
-
Something like this will probably work: foreach (var image in images)
{
image.Extent(overlay.Width, overlay.Height, Gravity.Center);
image.Composite(overlay, CompositeOperator.Over);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to open webp animation onto a specific canvas size and position so I can compose image ontop of it. The animation is smaller than the canvas that I need so I'm trying to enlarge the canvas and move the images into the correct position (imagine placing a 100x100 animation onto 400x400 canvas and moving it into middle of it). I've tried passing in ReadSettings into the collection and defining width/height and page geometry but it didn't seem to do anything. How can I achieve this?
I'm currently using the code below.
Beta Was this translation helpful? Give feedback.
All reactions