an bitmapped image on the computer is represented by many pixels. a pixel is basically a dot on the...

15

Upload: jemimah-may

Post on 17-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen
Page 2: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

An bitmapped image on the computer is represented by many pixels.

A pixel is basically a dot on the computer screen.

Page 3: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

A pixel is made up of an RGB (Red, Green, Blue) value. Red, green and blue each have a value of 0 to 255.

Examples Black (0,0,0) Red (255, 0, 0) Green (0, 255, 0) Blue (0, 0, 255)

Page 4: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

Common bitmapped images

Extension Name

BMP Bitmap

GIF Graphics Interchange Format

JPG Joint Photographics Expert Group

PNG Portable Network Graphics

TIFF Tagged Image File Format

Page 5: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

Although many different types of bitmapped images exist GIF and JPG are used most (especially on the web) JPGs are used for photographs GIFs are mainly used for graphics (clip art,

animations) These formats do the best job of balancing

quality and file size

Page 6: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

GIF JPG

Page 7: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

Vectors are another image format but quite different from bitmaps

Uses points, line and curves and relies on mathematical equations to create images

The main format for vectors is Scalable Vector Graphics

Page 8: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen
Page 9: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

By combining our programming skills and our new knowledge of images we can easily manipulate images

This allows us to create “filters” much like an image editing program such as Photoshop or Fireworks

Page 10: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

Images can easily be added to Java programs

However, this topic will be covered in Intermediate Programming

A package named Javax.Swing must be imported

Just remember JPG and GIF work best with Java for now

Page 11: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

By using a pre-existing Picture class (courtesy of Mark Guzdial and Barb Ericson at Georgia Tech) we can easily create Picture objects and modify them

We will work with bitmapped images (GIF and JPG)

Page 12: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

Using the Picture class we can create an image object

The pixels that make up the image can easily be placed into an array

So, if we access the pixels through an enhanced for loop we can modify the RGB values

If every pixel is modified a filter is created

Page 13: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

Follow along with my demonstration and we will modify our first picture together

Page 14: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

MIDI (Musical Instrument Digital Interface) industry-standard protocol than allows electronic

instruments and computers to communicate with one another

MIDI makes is possible for computers, synthesizers, sounds cards, drum machines and samplers to control one another and exchange data

No audio signal is produced, rather data is sent to determine the pitch and intensity of music

Page 15: An bitmapped image on the computer is represented by many pixels. A pixel is basically a dot on the computer screen

Sampled sounds (such as WAV files) are actual recordings

Sampled sound allows for human voice to be synthesized