Images CS418 Computer Graphics John C. Hart Vector v. Raster - - PowerPoint PPT Presentation

images
SMART_READER_LITE
LIVE PREVIEW

Images CS418 Computer Graphics John C. Hart Vector v. Raster - - PowerPoint PPT Presentation

Images CS418 Computer Graphics John C. Hart Vector v. Raster Graphics Vector Graphics Raster Graphics Plotters, laser displays TVs, monitors, phones Clip art, illustrations Photographs PostScript, PDF, SVG


slide-1
SLIDE 1

Images

CS418 Computer Graphics John C. Hart

slide-2
SLIDE 2

Vector v. Raster Graphics

Vector Graphics

  • Plotters, laser displays
  • “Clip art,” illustrations
  • PostScript, PDF, SVG
  • Low memory (display list)
  • Easy to draw line
  • Solid/gradient/texture fills

Raster Graphics

  • TV’s, monitors, phones
  • Photographs
  • GIF, JPG, etc.
  • High memory (frame buffer)
  • Hard to draw line
  • Arbitrary fills
slide-3
SLIDE 3

Rasterization

3

Vertices Pixels Fills Aliasing Primitives

slide-4
SLIDE 4

Scalable Vector Graphics

<svg height=“500px” width=“500px” viewbox=“0 0 1 1”> <path d = “M 0.2 0.0 L 0.2 0.2 L 0.4 0.2 L 0.4 0.8 L 0.2 0.8 L 0.2 1.0 L 0.8 1.0 L 0.8 0.8 L 0.6 0.8 L 0.6 0.2 L 0.8 0.2 L 0.8 0.0 Z” fill = blue /> </svg>

(0,1) (1,1) (1,0) (0,0)

slide-5
SLIDE 5

Raster Images

  • 2-D Array of Color Values
  • Spatial Resolution: HRES × VRES
  • Image Aspect Ratio:

HRES/VRES (HDTV = 1920/1080 = 1.78 = 16:9)

HRES VRES

slide-6
SLIDE 6

Raster Images

  • 2-D Array of Color Values
  • Spatial Resolution: HRES × VRES
  • Image Aspect Ratio:

HRES/VRES (HDTV = 1920/1080 = 1.78 = 16:9)

  • Pixel Aspect Ratio:

(height/width) / (HRES/VRES) Square pixels are 1:1

HRES VRES width height

slide-7
SLIDE 7

Raster Images

  • 2-D Array of Color Values
  • Spatial Resolution: HRES × VRES
  • Image Aspect Ratio:

HRES/VRES (HDTV = 1920/1080 = 1.78 = 16:9)

  • Pixel Aspect Ratio:

(height/width) / (HRES/VRES) Square pixels are 1:1

HRES VRES width height HRES/2 VRES

slide-8
SLIDE 8

Raster Images

  • 2-D Array of Color Values
  • Spatial Resolution: HRES × VRES
  • Image Aspect Ratio: HRES/VRES

(HDTV = 1920/1080 = 1.78 = 16:9)

  • Pixel Aspect Ratio:

(HRES/VRES) / (height/width) Square pixels are 1:1

  • Color Resolution (bits per pixel)

1 bpp: 8 bpp: = 24 bpp: = #FF6D55

HRES VRES 1 1 1 0 1 1 0 1 1 width height VRES HRES/2