We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

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

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

# CS602 Assignment # 1 (Dead Iine April 16, 2012)

Assignment No. 1

Spring 2012

Rules for Marking

Your assignment will not get any credit if: -

• Submitted after due date
• It is copied

Objective

To build concepts concerning hardware and techniques used in Computer Graphics

Assignment

Q1)

Device an algorithm for drawing a Rounded Rectangle

You are required to explain the procedure (Even in simple English), you can implement but it is not necessary.

10

Q2)

Give a brief introduction of Accelerated Graphics Port, how it is used to enable the 3-D graphics on personal computers.                                       10

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

Views: 680

.

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

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

Attachments:

### Replies to This Discussion

discuss here

is this correct?

void set_pixel(int x, int y);

void round_rectangle(int x, int y, int width, int height, int radius)
{
for(int i = 0;i < width - 2 * radius;i++)
{
set_pixel(x + radius + i, y);
set_pixel(x + radius + i, y + height);
}

for(int i = 0;i < height - 2 * radius;i++)
{
set_pixel(x, y + radius + i);
set_pixel(x + width, y + radius + i);
}

for(int i = 0;i <= radius;i++)
{
set_pixel(x + width - radius + i, (int)(y + height  - radius * sin(i * (pi/(2 * radius))));
}
}

i tried this code but its givnig some problem

You are required to explain the procedure Even in simple English, you can implement but it is not necessary.

bhai is correct please tel me

I'm trying but totally confused, C, C++, Assembly. what is being gone?

help neededdddddddddddddd

pehlay sawal ka koi idea day day plzzzzzzzzzzzzzzzzzzzzzz, thora sa idea,,,,,,,,,,,, plz

??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

AOA

plz give idea somebody.today is last day

## Latest Activity

Sufyan Ali, bakhtawar, Zoya Arshad and 4 more joined Virtual University of Pakistan
8 minutes ago
Mani Siddiqui BS VIII posted a status
"Life is a jourNey that MuST b traveled no MaTTER H0w Bad the Roads and accommodations"
20 minutes ago
32 minutes ago
Mani Siddiqui BS VIII and Maria are now friends
33 minutes ago
Mani Siddiqui BS VIII replied to Maham Raza.'s discussion Mazi.
33 minutes ago
Mani Siddiqui BS VIII liked Maham Raza.'s discussion Mazi.
34 minutes ago
1 hour ago
Maham Raza. updated their profile
4 hours ago
Maham Raza. posted discussions
4 hours ago
Soldierr liked +♡ѕωєєт иєσи♡+'s profile
6 hours ago
ABID FAROOQ bHUTTA posted a status
"CS 508 Assignment Solution https://youtu.be/_Zr2Zah754o"
7 hours ago
ABID FAROOQ bHUTTA posted a status
7 hours ago

1

2