Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »


 The purpose of this project was to use Zelle's graphics package and manipulate the pixel colors of different images.  The key to achieving project goals was to understand how Zelle's graphics package works.  Broadly speaking, the following are some points that I needed to know to do this project: 1) how the image is created, placed, and saved  2) how the filter manipulates an image (i.e. pixels) and 3) how conditional statements (if) can be used to make the filters to have more complicated effects on specific pixels.  Given the understanding of those points, I was able to create Warhol program. which created four filtered images and put them together in a square.  Then, I created blueSceen program, which manipulated the background pixels in my own picture to different color – red.


 Controlling image placement:

The function placeImage() is very important in this project because it's going to be used for both Warhol program and blueScreen effect program.  It basically takes the rgb values of a source image, src, and copy those values to a destination image, dst.  Why do I need to do this?  Because this is what this project is about.  What I am doing during the entire project is that I create some filters, apply the filters to an image, then place the filtered images to an empty or background image to create this Warhol collage.  Two commands must be understood to write this function: getPixel and setPixel.  They basically do what I described above.  Get the RGB values of the selected pixels and set the pixels to the given color.  Another necessary command to understand is the loop commands.

.  This is how I select every single pixel in the image.




Sources, imported libraries, and collaborators: 

  • No labels