ImageMagick.MagickImage<byte> seen as Non-generic Type #1833
-
I am not able to compile code that all of my research tells me should compile. "new ImageMagick.MagickImage" is being treated as a non-generic type then failing with the byte argument. I have tried a lot of things to ensure that I don't have conflicts and incompatibilities. Things I've done:
Thanks in advance for any help with this. [code] using ImageMagick; namespace ImageMagick_Test.Pages
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It should be |
Beta Was this translation helpful? Give feedback.
-
@dlemstra , thanks for helping. Removing the explicit brings back some earlier errors where it is trying to perform a conversion from int to byte. This is just a small test app I made to reduce to these specific invocations but I have a larger app where I am trying to use ImageMagick to perform some 'detect orientation and reorient document' processing where this 'int to byte' conversion error was prevalent throughout the operations until attempting to explicitly set type to byte, where it eliminated the conversion error but brought the nagging non-generic type error. |
Beta Was this translation helpful? Give feedback.
You will need to change
(1,1)
into(1U, 1U)
andSetPixelColor
also requires an unsigned integer so that should be0U
.