NotesM.Sc ITComputer Graphics Laboratory
PGCA1923

Computer Graphics Laboratory Notes

Program:M.Sc IT
Semester:Semester 3
Credits:2
Units:1 Units

Subject Overview

The practical companion to Computer Graphics, implementing pixel plotting, 2D shape drawing, text formatting, line-drawing algorithms (DDA, Bresenham's), circle and ellipse generation, 2D transformations, and polygon filling and clipping algorithms. A 2-credit core lab paper.

Subject at a glance

1

Units

14

Topics

2

Credits

1

Infographics

Unit-wise Syllabus

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

  • Pixel plotting
  • simple 2D shape drawing (lines, circles)
  • text formatting with graphics functions
  • DDA line-drawing algorithm
  • Bresenham's line algorithm comparison
  • moving wheel via midpoint circle and DDA algorithms
  • ellipse generation via midpoint algorithm
  • 2D transformations (translation, rotation, scaling) on user input
  • triangle rotation
  • combined scaling and translation operations
  • boundary fill algorithm
  • scan-line polygon fill algorithm
  • line clipping algorithms
  • Sutherland-Hodgeman polygon clipping
ProcessMidpoint circle algorithm
  1. 1

    Start at (0, r)

  2. 2

    Decision p = 1 − r

  3. 3

    If p < 0

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

  4. 4

    Else

    Next (x + 1, y − 1); p += 2(x − y) + 5

  5. 5

    Plot all 8 symmetric points

  6. 6

    Repeat while x < y

Study guide

In this lab you plot pixels, draw lines and circles, format text, implement DDA and Bresenham's lines, animate a wheel with midpoint circle and DDA, generate ellipses, apply 2D translation, rotation and scaling, rotate triangles, implement boundary fill and scan-line polygon fill and line clipping. Compare algorithm outputs visually.

Read Unit 1 notes

Why Computer Graphics Laboratory Matters

Implementing graphics algorithms yourself gives a real feel for how images are drawn.

How to Prepare for Computer Graphics Laboratory

  • Implement each algorithm without library shortcuts first.
  • Save screenshots of outputs.
  • Compare DDA and Bresenham results.

Computer Graphics Laboratory: Frequently Asked Questions

What is done in the graphics lab?

Implementation of line, circle and ellipse algorithms, 2D transformations, filling and clipping.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Computer Graphics Laboratory.