码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 2022:图元文件转换为Xaml||Paste2Xaml & ReaderWmf


    Paste2Xaml & ReaderWmf--AB4D: Professional tools for 2D and 3D graphics for .Net applications

    Import metafiles or copy graphics from
    almost any application into xaml.
     

    Paste2Xaml - convert clipboard and metafiles into xaml

    Paste2Xaml is a WPF application that can read Windows metafiles (wmf), Enhanced Metafiles (emf) or get matafile objects from clipboard and can convert them into XAML. It is possible to export XAML for WPF, Silverlight, Windows Phone and Windows Store apps.

    Paste2Xaml is using the Ab2d.ReaderWmf library that imports metafiles and can be also used in your applications.

    Paste2Xaml Screenshots


    Main Paste2Xaml window - a Power Point slide has been pasted to the Paste2Xaml application (showing as WPF elements).

    Export Dialog - showing the xaml text and all the export options for a metafile. It is possible to export xaml for WPF, Silverlight, Windows Phone and Windows Store apps. It is also possible to export to Enhanced Metafiles (emf) - useful for saving clipboard data that can be later opened with Ab2d.ReaderWmf.
    The objects from metafile can be exported as Shapes or as Geometries. Geometries export provide additional options to optimize for better performance and lower memory usage.

    The graph from Microsoft Excel 2003 shown in XamlPad.

    The following screenshot is showing Paste2Xaml with opened metafile that was created in AutoCad:

     

    Screenshots of sample metafiles

    The following images show screenshots of metafiles converted to XAML and show in IE (click on image to see it in full size):
     


    Word art from Microsoft Word 2003


    Formatted cells from Microsoft Excel 2007


    Calendar created in Microsoft Visio 2003


    Database schema created in Microsoft Visio 2003


    Meeting Room schema created in Microsoft Visio 2003


    Electrical equipment schema created in Microsoft Visio 2003


    Brainstorm diagram created in Microsoft Visio 2003


    Sample from Microsoft Office free Clip Arts


    Sample from Microsoft Office free Clip Arts


    Sample from Microsoft Office free Clip Arts


    Sample from Microsoft Office free Clip Arts


    Sample from Microsoft Office free Clip Arts

    ResourceDictionaryWriter

    With Ab2d.ReaderWmf library it is possible to build ResourceDictionares from metafiles. This means all metafiles are converted into xaml which makes them much more efficient and easier to use.

    To make building ResourceDictionares there is a ResourceDictionaryWriter sample application that is available with full source code so it can be fully customized. The following screenshot shows ResourceDictionaryWriter application with three metafiles added to the ResourceDictionary (xaml of ResourceDictionary can be seen on the right):


     

  • 相关阅读:
    一周热门|比GPT-4强100倍,OpenAI有望年底发布GPT-Next;1个GPU,1分钟,16K图像
    JAVA接入OPC DA2.0详细流程
    智慧安防解决方案-最新全套文件
    对于 CRC 校验的 学习笔记
    【合集】Redis——Redis的入门到进阶 & 结合实际场景的Redis的应用
    120.三角形最小路径和
    mysql倒序查询
    MySQL-FlinkCDC-Hudi实时入湖
    【毕业设计】基于单片机的智能鱼缸系统设计与实现 - 嵌入式 物联网 stm32 c51
    this理解不到位,导致十一点半还在改bug
  • 原文地址:https://blog.csdn.net/john_dwh/article/details/127889516
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号