命令行工具打印图片? [英] command line tool for print picture?

查看:254
本文介绍了命令行工具打印图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的程序需要打印曲线,
我的解决方案是将曲线更改为图片,
和此图片文件(xxx.png)可以使用默认的Windows图片打印工具右键单击文件顶部的鼠标,然后选择打印)。

My program need to print a curve, my solution is changing the curve into a picture, and this picture file (xxx.png) can be printed by using the default windows picture printing tool(right click the mouse on top of the file, and select print).

但我不希望用户手动执行此作业,我需要一个命令行工具这:

but I don't want user do this job manually, I need a command line tool to do this:

printPicture xxx.png

有没有这样的工具?

ps:自由/开源

编辑:
右键单击该文件,选择打印,然后我可以打印此文件
我如何在命令行中执行?

edit: right click the file, and select "print", then I can print this file, How can I do it in command line ?

推荐答案

我终于找到了!

使用windows图像和传真查看器。

use windows image and fax viewer.

rundll32    shimgvw.dll    ImageView_PrintTo /pt   xxx.png   "printer name"

这篇关于命令行工具打印图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆