Create a movie that changes the edge detection amount over time.

What will be an ideal response?

```
/**
* Method to c r e a t e a p o s t e r i z e d movie
* @param p the p i c t u r e to use in the movie
* @param d i r e c t o r y the d i r e c t o r y to s t o r e the frames in
*/
public void makeEdgeDetectMovie ( Pi c tur e p , St r ing d i r e c t o r y )
{
// make a copy of the p i c t u r e
Pi c tur e copyPict = nul l ;
// d e c l a r e o the r v a r i a b l e s
FrameSequencer f rameSequencer =
new FrameSequencer ( d i r e c t o r y ) ;
int f ramesPerSec = 3 0 ;
// loop c r e a t i n g the frames
for ( int i = 0 ; i < f ramesPerSec ; i++)
{
copyPict = new Pi c tur e (p ) ;
copyPict . edgeDe t e c t ion (31ยก i ) ;
f rameSequencer . addFrame ( copyPict ) ;
}
// p lay the movie
f rameSequencer . play ( f ramesPerSec ) ;
}
```

Computer Science & Information Technology

You might also like to view...

The ________ Movement is a thriving community of programmers building sample projects

Fill in the blank(s) with correct word

Computer Science & Information Technology

A disadvantage to editing data in a form is that some fields may be missing

Indicate whether the statement is true or false

Computer Science & Information Technology