Question: Please Implement this in java The whole purpose of this assignment is for you to implement a program that given a graphics image made up
Please Implement this in java

The whole purpose of this assignment is for you to implement a program that given a graphics image made up of lines, your program can demonstrate that it can Translate, Scale, Rotate, ... the image (using the matrix representations of the transformations). You should build a simple user- interface that receives commands from the user, ... The following functions are my suggestions - but I am sure that you are more creative than I am; therefore, use your own program design if you wish. Assume that the main purpose of writing this program is for you to build a simple graphics program that you can use to demonstrate to an individual (CEO of a company, manager of a corporation, ...) that your program can perform geometric operations. Thus, what appears below (in terms of functions, ...) are only suggestions. Implement each of the following functions: Inputlines ( datalines, num) { Reads 'datalines' from an external file (name of file is provided by the user). On return 'num' will contain the number of lines read from the file.} Apply Transformation (matrix, datalines) {applies the transformation matrix to the lines that appear in "datalines") Displaypixels ( datalines, num, VPx1, VPx2, VPyl, VPy2) { Displays (i.e., scan-converts) "datalines' containing 'num' lines - it displays only the lines and/or line segments that are visible in the ViewPort defined by VPx1, VPx2, VPyl, VPy2; thus, this function would perform 2D line clipping and then scan-converts only the entities that are visible. Outputlines ( datalines, num) (Outputs 'datalines' containing "num' lines to an external file (name of file is provided by the user). ) BasicTranslate (Tx, Ty) { Translation - "Tx' is the horizontal and "Ty' is the vertical displacements. } BasicScale ( Sx, Sy) Scale - 'Sr' and 'Sy' are the horizontal and vertical scaling factors; center of scale is at the origin of the Coordinate System.} BasicRotate (angle) { Rotation - angle of rotation is 'angle' degrees (clockwise); Center of rotation is at the origin of the Coordinate System.} Scale (Sx, Sy, Cx, Cy) { Scale - Sx' and 'Sy' are the horizontal and vertical scaling factors, center of scale is at Cx, Cy.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
