what precondition would you not expect image-select-ellipse! to have?

2
What precondition would you NOT expect image-select- ellipse! to have? A.width > 0 B.left > 0 C.(left + width) > 0 D.operation is REPLACE, ADD, SUBTRACT, or INTERSECT E.I’d expect it to have all of these preconditions.

Upload: moses-marquez

Post on 31-Dec-2015

8 views

Category:

Documents


0 download

DESCRIPTION

What precondition would you NOT expect image-select-ellipse! to have?. width > 0 left > 0 (left + width) > 0 operation is REPLACE, ADD, SUBTRACT, or INTERSECT I’d expect it to have all of these preconditions. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: What  precondition would you  NOT  expect  image-select-ellipse!  to have?

What precondition would you NOT expect image-select-ellipse! to have?

A. width > 0B. left > 0C. (left + width) > 0D. operation is REPLACE, ADD, SUBTRACT, or

INTERSECTE. I’d expect it to have all of these

preconditions.

Page 2: What  precondition would you  NOT  expect  image-select-ellipse!  to have?

What image does this describe?(define img (image-show (image-new 200 200))(image-select-rectangle! img REPLACE 50 50 100 100)(image-select-rectangle! img SUBTRACT 120 50 40 100)(image-fill-selection! img)

A. A square of edge length 100B. A square of edge length 50C. A square of edge length 100 with a

small chunk taken outD. Two rectanglesE. A rectangle of width 80 and height 100