Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible that a C# wrapper will be provided in the future? #11

Open
Charltsing opened this issue Jul 14, 2024 · 20 comments
Open

Is it possible that a C# wrapper will be provided in the future? #11

Charltsing opened this issue Jul 14, 2024 · 20 comments
Assignees
Labels
enhancement New feature or request

Comments

@Charltsing
Copy link

Is it possible that a C# wrapper will be provided in the future?

Thank you for your excellent work

@xiaozhuai
Copy link
Owner

xiaozhuai commented Jul 15, 2024

Hi @Charltsing , a C# wrapper is possible. You can wrap a dll and then use something like [DllImport("MyLibrary.dll", EntryPoint = "NativeMethod")].

Since this project is a c++ header only library, wrapping dlls need to be done by yourself, I believe this can be done within 10 lines of code.

Or completely rewriting imageinfo using C# would also be a good idea, just like the rust version imageinfo-rs.

: )

@Charltsing
Copy link
Author

I'm looking forward to an official version

@xiaozhuai
Copy link
Owner

I'm looking forward to an official version

Unfortunately, there is currently no official port for C#.
And currently I have no plans to port to C# for the time being.
If you are willing to get this done, I would be happy to help.
Any question is welcome.

@xiaozhuai

This comment was marked as outdated.

@Charltsing

This comment was marked as outdated.

@xiaozhuai xiaozhuai reopened this Jul 30, 2024
@xiaozhuai

This comment was marked as outdated.

@xiaozhuai

This comment was marked as outdated.

@Charltsing

This comment was marked as outdated.

@xiaozhuai

This comment was marked as outdated.

Repository owner deleted a comment from Charltsing Jul 30, 2024
@xiaozhuai

This comment was marked as outdated.

@Charltsing

This comment was marked as outdated.

@xiaozhuai

This comment was marked as outdated.

@xiaozhuai xiaozhuai reopened this Jul 30, 2024
@Charltsing

This comment was marked as outdated.

@xiaozhuai

This comment was marked as outdated.

@xiaozhuai

This comment was marked as outdated.

@xiaozhuai

This comment was marked as outdated.

@xiaozhuai

This comment was marked as outdated.

@Charltsing

This comment was marked as outdated.

@xiaozhuai xiaozhuai added the enhancement New feature or request label Jul 31, 2024
@xiaozhuai xiaozhuai self-assigned this Jul 31, 2024
@xiaozhuai xiaozhuai pinned this issue Jul 31, 2024
@Charltsing
Copy link
Author

Charltsing commented Aug 5, 2024

ImageInfo-sharp包括imageinfo-native,ImageInfo-sharp,imageinfo-demo三个项目

ImageInfo-sharp采用内存加载的方式调用原生dll。使用的MemoryModule来自https://github.com/wwh1004/MemoryModule
这个项目也是国内大神搞的。测试了三年,在上万台电脑跑过,很可靠。

其它具体项目说明看readme.txt

ImageInfo-sharp.zip

使用MemoryModule的目的是避免多出两个原生dll文件。可以单文件部署或者调用。

如果你觉得可用的话,以你的名义放在存储库里面吧。方便我以后升级查找。因为entrypoint.cpp还需要你来维护。

@xiaozhuai
Copy link
Owner

@Charltsing 感谢贡献。
我暂时会将此issue置顶,以便有需要的人方便获取。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants