-1

I'm trying to write a program to read an ppm (P3) file, and then display an image based of what the file contains. It should ask the user for a file, read the file and then render the pixels to the graphics pane. So far I have been able to ask for and read the file. However I cannot get it to display the image. I can get it to print out the contents of the file (it prints out the numbers). Any help will be appreciated.

New contributor
Jib is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Jib is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.