开发者

Display PostScript in WPF

开发者 https://www.devze.com 2023-01-16 03:40 出处:网络
I\'d like to display some sheet music in my WPF application which was generated by Lilypond. 开发者_Python百科 Lilypond can make postscript and PNG files - I\'ve got the latter working, but I\'d much

I'd like to display some sheet music in my WPF application which was generated by Lilypond. 开发者_Python百科 Lilypond can make postscript and PNG files - I've got the latter working, but I'd much prefer the former so that the music can be resized nicely. Is there a way to do that?


Simplest, but perhaps distasteful to many, would be to shell-out and use an external program render the postscript to png. You'd probably want to display some generic "working, please wait" message, as making an accurate progress-bar would be quite a chore.

Alternately, ghostscript can be used as a library and can read the PS from memory and render to memory, potentially saving some disk-access.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号