Writing out a newly created TiledImage
I am trying to write a class that deals with images in a way that I will find useful and I have ran into a problem.
What I am trying to do is to create an instance of an Image that can be read, edited or written as I see fit. Below is the class:
NB the forum wouldnt let me write the whole class in this box for some reason so here is a link;
The issue I am getting is when i create an image from scratch e.g.;
/*Creates 100x100 image with 3 bands*/
Image newImage = new Image(100, 100, 3);
Now I can get the correct details about it, I can even use the newImage.setPixel() method to edit the image and then use the newImage.getPixel() method to return it, and the changes have been made. My issue is, is that I cannot get the newly edited image to either write out or display.
Any suggestions what it is that I am doing wrong?