/*
Jeff Branyon
November 13, 2022
Section 4
Lab 10A
This program reads in the pixels of an image, then prints that same image back
out to a new file. 
This file contains the function for writing the pixels from the old image to
the new image file. 
*/

#include "defs.h"

// This function inputs the image array, width, and height; prints the pixels 
// of the array to the new image file, and returns nothing.
	void writePixels(pixel_t flagArray[], int width, int height) {
		int i;

		for (i = 0; i < width * height; i++) {
			fprintf(stdout, "%i %i %i\n", flagArray[i].r, flagArray[i].g, flagArray[i].b);
		}

	}

	
