Create a movie that has the frames slowly becoming posterized. The following method is in the MovieMaker class in the bookClassesFinal directory.

What will be an ideal response?


```
/? ?
? Method t o c r e a t e a p o s t e r i z e d movie
? @param p t h e p i c t u r e t o u s e i n t h e movie
? @param d i r e c t o r y t h e d i r e c t o r y t o s t o r e t h e frame s i n
?/
public void makePosterizedMovie ( P i c t u r e p , S t r i n g d i r e c t o r y )
{
// make a copy o f t h e p i c t u r e
P i c t u r e c o p y P i c t = null ;
// d e c l a r e o t h e r v a r i a b l e s
FrameSequencer f r a m e S e q u e n c e r =
new FrameSequencer ( d i r e c t o r y ) ;
int framesPerSec = 3 0 ;
// l o o p c r e a t i n g t h e frames
f o r ( i n t i = 0 ; i < f r a m e s P e r S e c ; i ++)
{
c o p y P i c t = new P i c t u r e ( p ) ;
copyPict . p o s t e r i z e (30 ? i ) ;
f r a m e S e q u e n c e r . addFrame ( c o p y P i c t ) ;
}
// p l a y t h e movie
frameSequencer . play ( framesPerSec ) ;
}
```

Computer Science & Information Technology

You might also like to view...

What is the difference between formative and summative evaluation?

What will be an ideal response?

Computer Science & Information Technology

Tables, queries, forms, and reports are all considered to be ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

A ____ is a computer program or portion of a program that is currently running.

A. thread B. fiber C. kernel D. process

Computer Science & Information Technology

____________________ firewalls can protect servers where it would be hard, costly, or impossible to insert a physical one.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology