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