Hour 23. Working with Graphics

Graphics can be represented on a computer in several ways. One is to store the image using a file format that approximates what the graphic looks like. For example, if you took a photo of the Californian sasquatch swimming in your pool and scanned it into your computer, you could save it as a JPEG file. The JPEG format is ideal for storing photographic images in reasonably small file sizes.

You also can represent graphics as a series of drawing instructions used to create the image. These are called “vector graphics,” and they are becoming popular on the World Wide Web in the form of Macromedia Flash programs. These graphics don't look like photographic images, but they are much smaller in file size and can be redrawn ...

Get SAMS Teach Yourself Programming with Java™ in 24 Hours, FOURTH EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.