Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在我的由 Lilypond 生成的 WPF 应用程序中显示一些乐谱。Lilypond 可以制作 postscript 和 PNG 文件——我已经让后者工作了,但我更喜欢前者,这样音乐可以很好地调整大小。有没有办法做到这一点?
最简单但对许多人来说可能令人反感的方法是掏空并使用外部程序将后记渲染为 png。您可能希望显示一些通用的“工作中,请稍候”消息,因为制作准确的进度条会很麻烦。
或者,ghostscript 可以用作库,可以从内存读取 PS 并将其渲染到内存,从而可能节省一些磁盘访问。