1 / 2

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

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.

kylar
Download Presentation

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

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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.

  2. 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 square of edge length 100 • A square of edge length 50 • A square of edge length 100 with a small chunk taken out • Two rectangles • A rectangle of width 80 and height 100

More Related