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

Maham Raza. liked +¢αяєℓєѕѕ gιяℓ's discussion پردہ
17 minutes ago
Maham Raza. replied to +¢αяєℓєѕѕ gιяℓ's discussion پردہ
18 minutes ago
Haroon Bahadar liked Asghar Shah's discussion ONLINE EARNING JOBS REQUIRED
4 hours ago
Haroon Bahadar liked Asghar Shah's discussion ONLINE EARNING JOBS REQUIRED
4 hours ago
Asima Mughal added a discussion to the group MTH601 Operations Research

### MTH 601 Assignment#1 solution due date is 8-6-2020

4 hours ago
4 hours ago
Asima Mughal and + Sabila Khan joined +M.Tariq Malik's group

### MTH601 Operations Research

4 hours ago
Amar Butt joined +M.Tariq Malik's group

### CS205 Information Security

4 hours ago
4 hours ago
5 hours ago
naila mukhtar joined +M.Tariq Malik's group

5 hours ago
5 hours ago

1