/*
Bryce Metz
11/17/22
Section 001
Lab #11
*/

#include <stdio.h>

typedef struct {
      char type[4];
      int width;
      int height;
      int maxColor;
   } info;

   typedef struct {
      unsigned int r;
      unsigned int g;
      unsigned int b;
   } colors;

info getHeader(FILE * inFile);
// This function obtains the width that the user enters into the program

void writeHeader(info h1, FILE * outFile);
// This function uses the information to display the header with the correct number of pixels

void fillImageArray(colors colorValues[], FILE * inFile, int width, int height);
// This function uses the color values to arrange them in the order for the flag to look correct

//void writePixels(colors colorValues[], int width, int height);
// This function displays the correct pixels in the right places

void halfSizeWritePixels(colors colorValues[], FILE * outFile, int width, int height);
