CMPT 166 Lecture Notes - Lecture 6: Gif, Global Variable, Size Function

10 views4 pages

Document Summary

Digital images are typically stored as a rectangular array of pixels that have both a color and, sometimes, a transparency level. Processing has pretty good support for reading and displaying image files. It works with most major image file formats, including jpeg, png, and gif: the jpeg format is typically used for storing photographs. Jpeg does a good job of compressing photographic images at the expense of some image quality. Typically, jpeg images are about 10 times smaller than raw images in non-jpeg formats, and the image degradation is often hard to notice. Png images also let you specify pixels as having different levels of transparency, which is useful for some special effects. For most applications, though, png images are superior because png files are usually smaller and support more colors and more levels of transparency. Generally speaking, you should store photographs as jpeg, and non-photographs as png.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents