2017.10.31 ~ 2017.11.7
0. Take Input
row size, col size, and image.
1. Query1: RESIZE
- arg1 = 0: 2X Magnification
*arg1 = 1: 2X Reduction
2. Query2: ROTATE
-
arg2 = 0: 90 degree
-
arg2 = 1: 180 degree
-
arg2 = 2: 270 degree
3. Query3: FLIP
-
arg3 = 0: flip horizontally
-
arg3 = 1: flip vertically
4. Query4: COPY AND PASTE
Take x1, y1, c_h, c_w, x2, y2.
Copy the vertical length (c_h) and the horizontal length (c_w) at the (x1,y1) coordinates of the original image.
Paste the result of the copy to (x2,y2) coordinates.
5. Query5: FILL
Take x, y, color
Change all the pixels that are adjacent to (x,y) and same color with (x,y) coordinates into a given color.