Login(Email) Password Forget Password? Account Settings
Home ASP.net System Info C# Books Java Script Visual C++(MFC) C/C++ Win API Java Contact Us
<
Sutherland Line Clipping Source code in C++ Download
Line Drawing Algo. Implementation Source Code in C Download
Cirlce Drawing Source code in C Download
Bezier Curve source in C Download Download
Methods to make your own Putpixel Method 
1st Method
union REGS regs;
regs.h.ah= 12;
regs.h.al=color;
regs.h.bh=0;
regs.x.cx=x;
regs.x.dx=y;
int86(16,&regs,&regs);
2nd Method:
Same Method as method #1 but now code is in assembly language.

asm
{
mov ah,12
mov al,color
mov bh,0
mov cx,x
mov dx,y
int 16h
}
3rd Method:
 
While in mode x (i.e. 256 color mode) you can draw a pixel like that. This method is very fast. To Put a Pixel use following Two lines:
unsigned char far *vd=(unsigned char far *)0xA0000000;
vd[x+(320*y)]=color;

To use Mode – X use following C++ Code

union REGS regs;
regs.h.ah=0;
regs.h.al=0x13;
int86(16,&regs,&regs);