-
I updated the nuget from 7.17 to 7.20 and there are some code breaking changes. (not expected from versioning number). Can someone please point me how to do the following as of now (didn't find any information) + Cloning a magickImage ? + Setting the image background + reading using a stream and settings eg, for eps, i need to set a density in the read settings before reading the strem... Thanks !! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You might be expecting semver but in the documentation (https://github.com/dlemstra/Magick.NET) you can find the version strategy that explains this. The return type of rawImage.Clone() depends on the type you used for rawImage. I suspect you are using |
Beta Was this translation helpful? Give feedback.
-
Thanks Dirk. Versionning makes sense indeed. Cheers, Luc |
Beta Was this translation helpful? Give feedback.
You might be expecting semver but in the documentation (https://github.com/dlemstra/Magick.NET) you can find the version strategy that explains this.
The return type of rawImage.Clone() depends on the type you used for rawImage. I suspect you are using
IMagickImage
. The type has changed toIMagickImage<QuantumType>
where QuantumType depends on the version of the package that you are using. Q8 =byte
, Q16 =ushort and Q16-HDRI =
float. You will need to change that to
IMagickImageor use
var` where possible to avoid issues. You are experiencing the same issue in all those places that you mention.