Raster or bitmapped graphics
Examples:
Modified from source: https://commons.wikimedia.org/wiki/File:Anti-aliasing.jpg
Stair-step aliasing effects (pointed to by arrow) are also known as "jaggies".
Modified from source: https://commons.wikimedia.org/wiki/File:Anti-aliasing.jpg
Vector graphics
Examples:
Source: https://en.wikipedia.org/wiki/Scalable_Vector_Graphics
Problem: Raster or bitmapped graphics can result in large file sizes for large resolutions and/or deep color depths.
Solution: Image compression!
JPEG File Interchange Format (JFIF)
A "lossy" image file format suitable for complex backgrounds such as digital photographs of nature which can achieve high compression while usually retaining visual integrity of the image itself.
Advantages:
Disadvantages:
Advantages:
Disadvantages:
Input:
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW
Output:
12W1B12W3B24W1B14W
Fall 2016, CS-116A:
Lectures:
Assignments:
Handouts:
Programs: