Charltsing.Liu
Charltsing.Liu
Thank you for your prompt reply. Can the Image control support zooming and moving by default ? ``` public void ZoomableMovableImage() { var img = new Image(); img.InterpolationMode = D2D1_INTERPOLATION_MODE.D2D1_INTERPOLATION_MODE_HIGH_QUALITY_CUBIC;...
After add ScrollViewer control, the visible area of zooming is limited by the visible area of ScrollViewer . Use ZoomableImageWithSV() function and 42.jpg it is TestWindow.cs and 42.jpg. Press crtl...
I have added image movement function. When the image is zoomed in, it limit the capture of mouse events. The capture area is limited to the range before movement.
I know where the problem lies now What I need is image scaling and translation, not image control scaling and translation [ImageEnhance control, support image scaling and translation](https://github.com/aelyo-softworks/Wice/issues/55)
FPDF_DOCUMENT FPDF_LoadDocument(const char* file_path, const char* password); 这是函数原型,你要传个指针 https://zhuanlan.zhihu.com/p/672942133
那你把issue关了啊
I'm looking forward to an official version
我只懂C#,可以编译你的项目,但是生成的却是exe文件。这就麻烦了。 以我的C水平,能编译已经是能力极限。把你这个工程改成符合c#要求的dll,有点费劲。 没找到 extern "C" __declspec(dllexport) 导出函数,是不是得我自己写啊。 ———— 另外,ImageInfo的输出对C# 也不太友好。 C#获取c++的输出,通常是数值、字节数组、字符串。后两者还需要知道分配的内存大小。 或者直接返回一个定长的结构,以便C#分配内存。 所以,是不是考虑将输出改成C#友好的版本: 输出的结构包括:图像格式枚举,图像宽高数值,以及输出的其它字符串和字符串长度。 或者直接输出定长的结构,字符串改成定长,例如图像格式用8个字符,错误信息64个字符之类的。 如果实在麻烦的话,也许直接只写一个导出函数,能提供图像格式枚举和宽高数值就足够了,不需要字符串输出。因为我没在代码里面发现其它什么有用的图像信息。 这就是为啥我希望等官方出一个C#包装,毕竟需要修改你的源代码才方便包装成C#版本。
我把imageinfo.hpp放到imageinfo-sharp\imageinfo-native目录下,编译成功。 谢谢您的帮助。
> @Charltsing 没什么问题的话,我就关闭这个issue了。有问题的话你可以再重新打开。 那个啥,你这个版本不支持中文吗?英文没啥问题了 我测试中文路径和中文文件名都提示: - Error : Unrecognized format 没找到在哪reopen 顺便问一下,字符串能不能以Unicode方式传进native dll,这样就不需要utf8转换了。