Saving an image file (PGM format)
Hello,
I've written a program that loads a .pgm file, processes it through a median filter, and displays it via GUI.
I'm trying to write a saveImage() method that will save the file with a "_processed" tag to the end of the original image name. The original and processed images each have their pixels in a 2-dimensional array.
Can anybody direct me to a class and method to use to write this .pgm file to the same directory?
Thanks a ton.
Re: Saving an image file (PGM format)
Which bit do you need help with? All you need to do it write your array to a file really. Along with a couple of other predetermined bits and some white space. And then a "#_processed" tag. You can write your own code to do this in a matter of seconds.
Chris
Re: Saving an image file (PGM format)
Thank you, I figured it out. I specialize in making programming harder than it actually is.
Re: Saving an image file (PGM format)
Hehe :).
If thats everything could you mark this as solved.
Thanks,
Chris