DOC PREVIEW
UNI CS 4550 - Lecture Notes

This preview shows page 1-2-3 out of 9 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Opening ExerciseReduce my official UMPR photo to a manageable size...Media Operationscopy allcopy regionreflectrotateblendscaleThe Programming Toolmanipulate pixels by their position in the imagethe nested for loopfor (int x = startX; x < lastX; x++) for (int y = startY; y < endY; y++) operate on the pixel at ( x, y )Another ExerciseAll of of copy operations have copied rectangles.Write a method namedcopyRightTriangle( int x, int y, int width )which copies the trianglebelow the diagonal of a square.An Example( 70, 10 ), width = 185You may assume we are copying to the same location in a new image.Generalizing Our Copy OperationsHow could we copy a triangle from a rectangle?How could we copy some other triangle?How could we copy a circular region?Generalizing Our Copy OperationsHow could we copy a triangle from a rectangle?How could we copy some other triangle?How could we copy a circular region?... geometry and algebra!Cool Image Effectsin Homework 1"live" repainta dotted lineuse of colored blocksHomework 2What are the high-level operations?Design your solution in this way:• create an empty method for each operation• design, implement, and test each method one at a


View Full Document

UNI CS 4550 - Lecture Notes

Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?