Please enable JavaScript to use CodeHS

  • AP CSA Lab

Picture Lab

In this College Board project, students will explore the way pictures are stored in memory, nested loops, interfaces, and inheritance. They will modify pictures in different ways.

Hard

10 Hours

High School

Project Description

Background

In this lab you will be writing methods that modify digital pictures. In writing these methods you will learn how to traverse a two-dimensional array of integers or objects. You will also be introduced to nested loops, binary numbers, interfaces, and inheritance.

Your Task

In this lab, you will be working through a set of activities. These activities will help you learn about how:
- digital pictures are represented on a computer;
- the binary number system is used to represent values;
- to create colors using light;
- Java handles two-dimensional arrays;
- data from a picture is stored; and
- to modify a digital picture.

Feel free to use this Activity Guide as you go through the Lesson. It’s important to note that Activities 7 & 8 are not included in this Lesson.