Giter Club home page Giter Club logo

wordpictureviewer's Introduction

Word 图片浏览器插件 (WordPictureViewer Addin)

本项目是一款用于双击放大浏览 Office Word 文档中图片的 Word VSTO 外接程序 (插件)。

This project is a Word VSTO add-in program (plug-in) for double-click to enlarge browse pictures in Office Word documents.

Example

下载 (Downloads)

Office AddIn Download
Word word_v1.0.3.zip

安装 (Install)

解压压缩包,双击 setup.exe,点击安装,完成。

Unzip the package, double-click setup.exe, click Install, and finish.

卸载 (Uninstall)

打开 Windows 设置,进入【应用】-【应用和功能】,搜索 WordPictureViewer,点击卸载,完成。

Open Windows Settings, go to 【Apps】 - 【Apps and Features】, search for WordPictureViewer, click Uninstall, and done.

更新日志 (Release History)

v1.0.3 (2023-09-04)

  • 最小缩放率调整为 50%。

v1.0.2 (2023-04-10)

  • 新增Esc键退出浏览功能。

v1.0.1 (2023-03-18)

  • 优化图片打开速度;

  • 优化嵌入式图片浏览效果。

v1.0.0 (2023-01-17)

  • 支持双击放大图片。

wordpictureviewer's People

Contributors

theyangfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

in-your-dreams

wordpictureviewer's Issues

调整可缩小的倍数

目前我看作者的代码好像是:当滚轮向上滚动(即 e.Delta > 0)时,代码会增加 _scaleStep 的值,从而增加 _scale 的值,实现放大。而当滚轮向下滚动时,代码会减少 _scaleStep 的值,但有一个条件限制 _scale + _scaleStep 必须大于或等于 100,这意味着 _scale 的值不能小于 100,因此不能实现缩小。

我想可不可以修改一下,缩小最小可以在50%或者70%左右,毕竟有的时候100%的放大也是很大的

if(e.Delta > 0) // zoom in
{
_scaleStep = Math.Abs(_scaleStep); // Ensure _scaleStep is positive
_scale += _scaleStep;
}
else // zoom out
{
_scaleStep = -Math.Abs(_scaleStep); // Ensure _scaleStep is negative
_scale += _scaleStep;
}

// Ensure _scale doesn't go below a certain minimum (e.g., 50%)
_scale = Math.Max(_scale, 50);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.