Create image with different dimensions but same pixel type #2391
Unanswered
jurgen-kluft
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The pixel format isn't exposed in the non-generic type. You would have to use the Otherwise enforce a pixel format by avoiding the non-generic type on load. using Image img = Image.Load<Rgba32>("test.png"); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Image img = Image.Load("test.png");
// how do I create an image with a certain size but the same pixel type of 'img'?
Image another = new Image<?>(anotherWidth, anotherHeight);
Beta Was this translation helpful? Give feedback.
All reactions