We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.vustudents.ning.com

 www.bit.ly/vucodes + Link For Assignments, GDBs & Online Quizzes Solution www.bit.ly/papersvu + Link For Past Papers, Solved MCQs, Short Notes & More

Looking For Something at Site? Search Below

Assignment No. 02 Semester: Fall 2015 CS602: Computer Graphics

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

Views: 3747

Attachments:

Replies to This Discussion

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

AOA! Dear fellows Share your valuable Ideas ... Early Posts will b highly Solicited ...

dear how we can add red color in our code
plz help

YOu need to use the setcolor(RED) property after declaring integers in your boundary_Fill function

Any one have the idea or not and please let me know i am not able add graphic library in my dev

it just a piece of cake

Any hint ????

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

#include
#include
#include
void boundfill(int xc,int yc,int r,int b)
{
int cur;
cur=getpixel(xc,yc);
if(cur!=b && cur!=r)
{
putpixel(xc,yc,r);
delay(1);

boundfill(xc+1,yc,r,b);
boundfill(xc-1,yc,r,b);
boundfill(xc,yc+1,r,b);
boundfill(xc,yc-1,r,b);
}

}
main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"..\\bgi");

rectangle(100,100,300,300);
boundfill(105,105,4,WHITE);

getch();
closegraph();
}

yeh kya dy dya :D

bro color kaisy ay ga. plz help us..

Latest Activity

Miss. Churhail liked Miss. Churhail's discussion ENG506 GDB SOLUTION ????
12 minutes ago
22 minutes ago
Miss. Churhail posted discussions
38 minutes ago
Ma no, Tahir Ali, AHMAD RAZA and 9 more joined Virtual University of Pakistan
1 hour ago
Tasha joined +M.Tariq Malik's group

CS201 Introduction to Programming

1 hour ago
princess and + cs619 joined +M.Tariq Malik's group

CS614 Data Warehousing

1 hour ago
2 hours ago
jamshaid joined +M.Tariq Malik's group

PAK301 Pakistan Studies

2 hours ago
3 hours ago
Zohaib Ch joined +M.Tariq Malik's group

HRM624 Conflict Management

3 hours ago
3 hours ago
Zohaib Ch updated their profile
3 hours ago

1

2

3

4

5