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

扩展:浮动图像,可配置图片浮动于文字上 #92

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

dessli
Copy link
Contributor

@dessli dessli commented Nov 20, 2024

浮动图像

可以通过MiniWordPicture扩展参数配置图片悬浮环绕在文字上或文字下
MiniWordPicture 扩展参数。

  • WrappingType: MiniWordPictureWrappingType.Anchor 浮动图像
  • HorizontalPositionOffset: 设置图片相对于锚点的水平偏移量(以像素为单位)
  • VerticalPositionOffset:设置图片相对于锚点的垂直偏移量(以像素为单位)
  • BehindDoc: 控制图片是否显示在文档文字的后方
  • AllowOverlap: 控制图片是否允许与其他图片或对象重叠
new MiniWordPicture() { Path = "image.png", Width = 160, Height = 160, WrappingType = MiniWordPictureWrappingType.Anchor, HorizontalPositionOffset = 400};

@masterworgen
Copy link
Contributor

I think will be good idea add support use MiniWordPicture with bytes without path

@masterworgen
Copy link
Contributor

Maybe add support constructor for like:
new MiniWordPicture(string path, int? width, int? height
new MiniWordPicture(byte[] bytes, int? width, int? height

@dessli
Copy link
Contributor Author

dessli commented Nov 28, 2024

Maybe add support constructor for like: new MiniWordPicture(string path, int? width, int? height new MiniWordPicture(byte[] bytes, int? width, int? height

I also think this feature is necessary. If no one develops it, perhaps I will work on it after some time.

@shps951023 shps951023 merged commit fef7cce into mini-software:main Nov 29, 2024
1 check failed
@shps951023
Copy link
Member

@dessli ❤Merged, 也发送邀请给您

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

Successfully merging this pull request may close these issues.

3 participants