Saturday, December 31, 2011

Computer Graphics Using C:Moving Circle..!!!

>Here is a code for Moving Circle...
>The Drivers are default system detected...



#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<math.h>
#include<dos.h>

int l=1;

void ddaline(int x1,int y1,int x2,int y2)
{

int s,dx,dy,m;
float xi,yi,x,y;

dx=x2-x1;
dy=y2-y1;

if(abs(dx)>abs(dy))
s=abs(dx);
else
s=abs(dy);

xi=dx/(float)s;
yi=dy/(float)s;

x=x1;
y=y1;

putpixel(x1+0.5,y1+0.5,15);

for(m=0;m<s;m++)
{
x+=xi;
y+=yi;
putpixel(x+0.5,y+0.5,15);
}
}



A Smart Way To Refresh The Screen Automatically..!!


>>When you are working on your local computer and want to refresh any changes in your system automatically. For example, some times you are watching sports results, online Stock Exchange rates and any changes to your hard drive but these changes are not usually refreshed until you press the F5 key on your keyboard.
>>To refresh your screen automatically you should edit your system Registry. But the best technique to edit the windows registry keys, always export or backup the whole windows registry keys on backup drive before editing. Because any mistake in Registry can cause serious problem in your computer to run properly.
Follow the given steps to change the updates automatically.

  • First click on Start button then type Regedit in Run option.
  • In Registry Editor panel go to the path:
·         HKEY_LOCAL_MACHINE / System / CurrentControlSet /Control / UpdateMode
·         Here in right hand side panel edit the DWORD value to be between 1 and 5.
·         Now restart your computer after any changes to go into effect.


                                      > >'N'joy..!!

A new way to load Adobe Acrobat Reader Faster.!!


>The reason for slow loading speed in its unnecessary Plugins.

>Here is a trick to remove extra Plugins.

>Just follow the simple steps..!

1)GO to installation Folder..
(C:\Program Files\Adobe\Acrobat\Reader\...)

2)Move all files/folders named from "Plugins" folder to "Optional" folder.

>Reopen the reader ,it will load fast..!!!




                                                                >N'joy...!!!