/* Nir.cpp – Inclue file for paint project */ /* Mouse control flags settings */ #include<iostream.h> #include<stdio.h> #include<fstream.h> #include<conio.h> #include<graphics.h> #include<math.h> #include<ctype.h> #include<dos.h> #include<time.h> #include<stdlib.h> //union REGS in,out; /*int toolselect=0; // Set the selected tool int status=0,status1=0; // defines the status of the tool */ //int xx,yy,xx1,yy1,sx,sy,sx1,sy1,mx,mx1,my,my1,fx; // used for dimensions //int menu=0,selected=0,stop=0,SA=0; //int Ts=0,St=0,Ct=0;//sets the toolbox,colorbox,statusbar status //int inc=0,Vs=0,incx=0,incy=0; // To set working area void show_Cursor( void ); //to display the cursor void hide_Cursor( void ); //to hide the cursor void initialize_REGS(); void initialize_REGS() { union REGS in,out; } void gimage1( int x, int y, int x1, int y1) { int i; hide_Cursor(); ofstream f( "image1" ); for (;y<=y1;y++) for (i=x;i<=x1;i++) f<<endl<<i<< "\t" <<y<< "\t" <<getpixel(i,y); f.close(); show_Cursor(); } void show_Cursor( void ) { in.x.ax=1; int86(0x33,&in,&out); } void hide_Cursor( void ) { in.x.ax=2; int86(0x33,&in,&out); } |
Thoughts on C#, .NET, programming, software development and productivity. Tips and tricks to solve various programming problems.
Tuesday, October 4, 2011
Paint in C++ - Include File for Paint
Subscribe to:
Post Comments
(
Atom
)