如何将X265编解码器添加到C#中的ImageMagick中
我想将X265编解码器添加到Visual Studio C#项目Targeting .NET 4.7.2中的ImageMagick中,以访问HEIC格式文件。我从shiftmediaproject文件libx265_3.4_msvc16.zip中获得了文件x265.dll,但我无法通过添加参考将其添加到VS项目中。我收到一条消息,即它是无法访问的,也不是com或汇编组件。如何将x265.dll添加到我的VS项目中?
I would like to add the x265 codec to ImageMagick in a Visual Studio C# project targeting .Net 4.7.2 in order to access HEIC format files. I obtained the file x265.dll from the ShiftMediaProject file libx265_3.4_msvc16.zip from the but I cannot add it to the VS project via Add Reference. I get the message that it is not accessible or not a COM or Assembly component. How can I add x265.dll to my VS project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简而言之:你不能。 ImageMagick无法整合C#实施编解码器。另外,只需在没有API定义的情况下使用DLL就无法解决。
然而,ImageMagick在现代版本中带有它自己的heif codec ,所以这是毫无意义的。您想要实现的目标已经实现。
In short: you can't. ImageMagick has no way to integrate C#-implemented codecs. Also, just getting a dll doesn't solve using it without API definitions.
ImageMagick, however, in a modern version comes with its own heif codec, so this is all a bit pointless. What you want to achieve is already achieved.