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
C Program To Create a Paint Brush
January 04, 2015
By:
Bhanu Namikaze
Bhanu Namikaze
Bhanu Namikaze is an Ethical Hacker, Security Analyst, Blogger, Web Developer and a Mechanical Engineer. He Enjoys writing articles, Blogging, Debugging Errors and Capture the Flags. Enjoy Learning; There is Nothing Like Absolute Defeat - Try and try until you Succeed.
No comments:
Post a Comment