Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 1.15 KB

Questions.md

File metadata and controls

87 lines (61 loc) · 1.15 KB
A1: Introduction to digital pictures and color
  1. 8 bits
  2. 4 bytes (RGB + Transparency) // because of the alpha channel
  3. 307200 pixels
A2: Picking a color
  1. java.awt.Color[r=255,g=172,b=227]
  2. java.awt.Color[r=255,g=255,b=29]
  3. java.awt.Color[r=142,g=0,b=255]
  4. java.awt.Color[r=255,g=255,b=255]
  5. java.awt.Color[r=48,g=48,b=48]
A3: Exploring a picture
Questions
  1. Row index is 0
  2. Column index is 0
  3. Column index is 639
  4. Row index is 479
  5. Row index increases from top to bottom
  6. Column index increases from left to right
  7. Yes, one can see squares of pixels
Exercises
A4: Two-dimensional arrays in Java
A5: Modifying a picture
Questions
  1. No
  2. Yes
  3. No, since DigitalPicture is an interface
  4. Yes
  5. Yes
  6. Yes
  7. No
Exercises
A6: Mirroring pictures
A7: Mirroring part of a picture
Questions
  1. 10 * 9 = 90
  2. 6 * 15 = 90
Exercises
A8: Creating a collage
A9: Simple edge detection