Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have written a code for encrypting the image my encrypted image will be similar to the actual image but with little difference pixel intensities i need to display this image on my console.I am using eclipse editor for this.can you please suggest any methods for that
Posted
Updated 25-Dec-22 18:48pm

How should an editor be able to display a graphic?

You can open an graphic program like paint and order to do so:

Java
new ProcessBuilder("mspaint","yourFileName.jpeg").start();


It would be a good idea to wrap that in a try/catch.
 
Share this answer
 
Comments
purrnah 11-Sep-14 7:30am    
This piece of code was useful for me and its working
thanqq
new ProcessBuilder("mspaint","yourFileName.jpeg").start();
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900