School of Computing
College of Engineering
University of Nebraska-Lincoln
University of Nebraska-Omaha
This project contains starter code and image library functionality (from https://github.com/nothings/stb) for Hack 7.0 from Computer Science I.
We have provided a full makefile
that you can use to build all
testing code and programs.
-
To build everything run the command
make all
-
To build the array tester:
make arrayUtilsTester
which will produce a program namedarrayUtilsTester
-
To build the image driver program (to test your flip and rotate functions visually) use
make imageDriver
which will produce a program namedimageDriver
. SeeimageDriver.c
for the full usage of this program. Some examples:-
Flip
avery.jpg
horizontally, saving to a file namedavery-horizontal.jpg
:
./imageDriver avery.jpg avery-horizontal.jpg 1
-
Flip
avery.jpg
vertically, saving to a file namedavery-vertical.jpg
:
./imageDriver avery.jpg avery-vertical.jpg 2
-
Rotate
avery.jpg
, saving to a file namedavery-rotate.jpg
:
./imageDriver avery.jpg avery-rotate.jpg 3
-