How to create new MagickImage instance with same settings as another #1584
Unanswered
toptensoftware
asked this question in
Help
Replies: 0 comments
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.
-
I'm trying to create some small cropped extracts from a loaded MagickImage image read from a file. Usually these files will be 1, 3 or 4 channels.
How can I create a new MagickImage instance that has the exact same channel/color format as the original image?
fwiw: at the moment, I'm using something like the following but it always creates a 3-channel image whereas I want to keep the same format as another MagickImage instance. (after this I'm using CopyPixels copy the part I'm interested in)
Beta Was this translation helpful? Give feedback.
All reactions