Pr.4 B Program For Reflection For 2D Object.
Pr.4 B Program For Reflection For 2D Object.
#include <iostreams.h>
#include <conio.h>
#include <graphics.h>
#include <math.h>
// Driver Code
void main()
{
// Initialize the drivers
int gm, gd = DETECT, ax, x1 = 100;
int x2 = 100, x3 = 200, y1 = 100;
int y2 = 200, y3 = 100;
// After reflection
printf("\n After Reflection");
closegraph();
}
Output :
Pr. 4B.] C++ program to perform reflection of the given 2D image
using computer graphics