image1 image2 image3

HELLO I'M AKHIL SUDHAKARAN|WELCOME TO MY PERSONAL BLOG|I LOVE TO DO CREATIVE THINGS|ONE EYE SEES, THE OTHER FEELS

Change Your Flash Drive Icon

Change your Flash Drive Traditional Icon to a Smart Icon. Follow the steps one by one. You Flash Drive will Smart

Steps to follow :
1-  Open Notepad
2-  Copy the content in green and paste it in to Notepad

                  [autorun] 
                  Icon=usb.ico

3-  Then go to “Save as…”
4-  Type File name : autorun.inf
5-  Save the file to your Flash drive
6-  Select an Icon file
7-  File name of icon should be '' usb.ico ''
8-  Copy your ''usb.ico'' file to Flash Drive

To see the result, unplug the Flash Drive and plug it again


Note : Some antivirus program may show that autorun.inf  as virus.But don't care about it. autorun.inf is a script that used to runs this automatically.

Share this:

CONVERSATION

1 comments:

Anonymous said...

#include
#include
#include
#include

int x1,y11,x2,y2,x3,y3,x,y,c,a;
int xr=75,yr=100;
float r;
void display(void){
glClearColor(1.0,1.0,1.0,0.0);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0.0,0.0,0.0);
glPointSize(6.0);
glBegin(GL_TRIANGLES);
glVertex2f(50,50);
glVertex2f(100,50);
glVertex2f(75,125);
glEnd();
printf("enter function:\n1:Translation\n2:Scaling\n3:Rotation\n4:reflection wrt x\n5:shear");
scanf("%d",&c);
switch(c)
{
case 1:printf("enter the translation coordinates");
scanf("%d%d",&x,&y);
x1=50+x;
y11=50+y;
x2=100+x;
y2=50+y;
x3=75+x;
y3=125+y;
glBegin(GL_TRIANGLES);
glVertex2f(x1,y11);
glVertex2f(x2,y2);
glVertex2f(x3,y3);
glEnd();
glFlush();
break;
case 2:printf("enter the scaling factors");
scanf("%d%d",&x,&y);
x1=50*x;
y11=50*y;
x2=100*x;
y2=50*y;
x3=75*x;
y3=125*y;
glBegin(GL_TRIANGLES);
glVertex2f(x1,y11);
glVertex2f(x2,y2);
glVertex2f(x3,y3);
glEnd();
glFlush();
break;
/* case 3:printf("enter the angle");
scanf("%d",&a);
r=(a*3.14)/180;

x1=50*cos(r)-50*sin(r)+xr*(1-cos(r))+yr*sin(r);
y11=50*sin(r)+50*cos(r)+yr*(1-cos(r))-xr*sin(r);
x2=100*cos(r)-50*sin(r)+xr*(1-cos(r))+yr*sin(r);
y2=100*sin(r)+50*cos(r)+yr*(1-cos(r))-xr*sin(r);
x3=75*cos(r)-125*sin(r)+xr*(1-cos(r))+yr*sin(r);
y3=125*sin(r)+125*cos(r)+yr*(1-cos(r))-xr*sin(r);

glBegin(GL_TRIANGLES);
glVertex2f(x1,y11);
glVertex2f(x2,y2);
glVertex2f(x3,y3);
glEnd();
glFlush();
break;
*/
case 4:x1=50;
y11=-50;
x2=100;
y2=-50;
x3=75;
y3=-125;
glBegin(GL_TRIANGLES);
glVertex2f(x1,y11);
glVertex2f(x2,y2);
glVertex2f(x3,y3);
glEnd();
glFlush();
break;

case 5:printf("enter shearing factor");
scanf("%d",&a);
x1=50+a*50;
y11=y11;
x1=50+a*50;
y11=y11;
glBegin(GL_TRIANGLES);
glVertex2f(x1,y11);
glVertex2f(x2,y2);
glVertex2f(x3,y3);
glEnd();
glFlush();
break;



default:printf("invalid");

}
}
int main(int argc,char **argv)
{
glutInit(&argc,argv);
glutInitWindowSize(500,500);
glutCreateWindow("LINE");
glOrtho(-255,255,-255,255,1,-1);
glutDisplayFunc(display);
glutMainLoop();
return 0;
}