SCAN CONVERTING LINES - Handwritten Style Notes
• Scan conversion means converting a mathematically perfect line into pixels for display.
• A computer screen is made of square pixels, so a line must be approximated using pixel patterns.
• Goal: Choose pixels so the drawn line looks smooth, thin, and visually close to the real line.
Concept:
• A real line is infinitely thin, but a pixel-based line is at least one pixel thick.
• We light up only pixels closest to the ideal line path.
• Pixel selection depends on slope (m) of the line.
Slope Rules:
• If -1 ≤ m ≤ +1 → choose 1 pixel per column (gentle slope).
• If |m| > 1 → choose 1 pixel per row (steep slope).
• Helps create continuous visible line on raster screen.
Pixel Geometry:
• Each pixel has integer coordinate (x, y).
• Line endpoints generally lie at pixel centers.
• On screens, pixels may appear circular or rectangular depending on hardware.
Aliasing:
• Line looks jagged or stair-shaped because pixel approximation is not perfect.
• This jaggedness is called aliasing.
Anti-Aliasing:
• Technique used to smooth jagged edges.
• Adjusts brightness of surrounding pixels to soften line edges.
Summary:
• Scan conversion = converting ideal line → pixel line.
• Aliasing occurs due to discrete pixels.
• Anti-aliasing improves quality.
• Pixel selection depends on slope for best appearance.