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

Safia Jahangir joined +M.Tariq Malik's group

### CS411 Visual Programming

1 minute ago
Safia Jahangir joined +M.Tariq Malik's group

### CS610 Computer Network

2 minutes ago
Safia Jahangir joined +M.Tariq Malik's group

### CS408 Human Computer Interaction

3 minutes ago
Nida Naseer joined +M.Tariq Malik's group

### MTH603 Numerical Analysis

21 minutes ago
Mani Siddiqui BS VIII posted discussions
21 minutes ago
Nida Naseer joined +M.Tariq Malik's group

### CS403 Database Management Systems

21 minutes ago
Nida Naseer joined +M.Tariq Malik's group

### CS401 Computer Architecture and Assembly Language Programming

21 minutes ago
Nida Naseer joined +M.Tariq Malik's group

### CS304 Object Oriented Programming

21 minutes ago
Nida Naseer joined +M.Tariq Malik's group

### CS302 Digital Logic Design

22 minutes ago
Nida Naseer joined +M.Tariq Malik's group

### CS301 Data Structures

22 minutes ago
26 minutes ago
Halima sultan liked Safia Jahangir's profile
57 minutes ago

1

2

3