Printing a BufferedImage in Java

后端 未结 4 1802
春和景丽
春和景丽 2021-01-25 19:34

Does anyone know how to print a BufferedImage in Java?

4条回答
  •  礼貌的吻别
    2021-01-25 20:18

    I'm not sure what you mean by print. Print on a printer? Print to standard out? Write to a file?

    You can check out this tutorial from sun. If you're looking to write to a file. Open in your favorite image tool and print from there.

    http://download.oracle.com/javase/tutorial/2d/images/saveimage.html

    If you're building a graphical app and using something like AWT you can using the java printing API which would probably require some tap dancing.

提交回复
热议问题