C Program To Create a Paint Brush

Code :
#include <string.h>
#include<complex.h>
#include <graphics.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#include <math.h>
#define MIN_X 83
#define MAX_X 629
#define MIN_Y 30
#define MAX_Y 409
#define MAX_BUTTONS 22 //total no of buttins available on the right 
side
of thr screen eg save etc
#define MAX_COLPAT 28 //total no of color patterns solid fill dashsed 
etc

// down words are the macros which define the action e.g marking or 
delete
etc

#define CLEAR      0
#define MARK_OP    8
#define CLIP_OP    10
#define TRANS_OP   11
#define ROTATE_OP 12
#define DELETE_OP 13
#define FLIP      14
#define MIRROR    15
#define LOAD_OP   16
#define SAVE_OP   17
#define SCALE_OP  18


/*intro()
{
system("c:project1");
sleep(3);
return 0;
}
#pragma startup intro 99*/

/*this structure defines the description of the each button eg the
start x ,y and end x,y of the button and the button no and descriptoin
about the working of the button*/
typedef struct button_desc
{
 int xmin,ymin,xmax,ymax;
 int button_no;
 char* desc;
}button;

button buttons[MAX_BUTTONS];//maximum no of buttons in case 22

/* the struct below defines the color buttons on the bottom of the
pa
Bhanu Namikaze

Bhanu Namikaze is an Ethical Hacker, Web Developer, Student and Mechanical Engineer. He Enjoys writing articles, Blogging, Solving Errors and Social Networking. Feel Free to let me know any of your concerns about hacking or let me know if you need any more methods on hacking anything. Enjoy Learning

No comments:

Post a Comment