NotesB.Sc ITSoftware Lab-XI (Computer Graphics)
BSIT605/BSBC605

Software Lab-XI (Computer Graphics) Notes

Program:B.Sc IT
Semester:Semester 6
Credits:2
Units:1 Units

Subject Overview

The practical companion to Computer Graphics, implementing graphics primitives, line/circle/ellipse drawing algorithms, animation and 2D clipping using C/C++. A 2-credit core lab paper.

Subject at a glance

1

Units

7

Topics

2

Credits

1

Infographics

Unit-wise Syllabus

1 units — open any unit for detailed topic-wise notes, diagrams and important exam questions

  • Basic C++ graphics functions (circle, putpixel, rectangle, arc, ellipse, floodfill, setcolor)
  • primitive functions for animation
  • direct method/DDA/Bresenham's line drawing algorithms
  • circle drawing via polynomial/trigonometric/Bresenham's methods
  • ellipse drawing via Bresenham's algorithm
  • moving a character along a circle
  • 2D clipping and windowing
ProcessBresenham's line drawing (slope < 1)
  1. 1Plot the start point (x0, y0)
  2. 2Compute dx, dy and p = 2dy − dx
  3. 3If p < 0

    Next is (x + 1, y); p += 2dy

  4. 4Else

    Next is (x + 1, y + 1); p += 2dy − 2dx

  5. 5Repeat until x reaches x1

Study guide

In this lab you use C++ graphics functions (circle, putpixel, rectangle, arc, ellipse, floodfill, setcolor), basic animation, the direct, DDA and Bresenham line algorithms, circle drawing by polynomial, trigonometric and Bresenham methods, Bresenham's ellipse, moving a character along a circle and 2D clipping and windowing. Compare the DDA and Bresenham outputs on the same line.

Read Unit 1 notes

Why Software Lab-XI (Computer Graphics) Matters

Implementing the algorithms yourself gives a real understanding of how images are drawn on screen.

How to Prepare for Software Lab-XI (Computer Graphics)

  • Write each algorithm without library helpers first.
  • Run and compare algorithms on the same inputs.
  • Keep screenshots of each output for the record.

Software Lab-XI (Computer Graphics): Frequently Asked Questions

What is done in the graphics lab?

Line, circle and ellipse algorithms, animation basics and 2D clipping using C++ graphics.

Final year of B.Sc IT? Plan your M.Sc IT next.

Build on your B.Sc IT with a 2-year M.Sc IT at SBS and go deeper into AI/ML, cloud and cybersecurity.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Software Lab-XI (Computer Graphics).