Create a movie of the robot (robot.jpg) moving across the moon (moon-surface.jpg).
What will be an ideal response?
```
/? ?
? Method t o c r e a t e a movie where a r o b o t c r a w l s
? a c r o s s t h e moon
? @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 makeRobotMovie ( S t r i n g d i r e c t o r y )
{
// g e t t h e p i c t u r e s t o u s e
P i c t u r e p i c t 1 = new P i c t u r e ( F i l e C h o o s e r . getMediaPath ( ”moon?s u r f a c e . j p g ” ) ) ;
P i c t u r e p i c t 2 = new P i c t u r e ( F i l e C h o o s e r . getMediaPath ( ” r o b o t . j p g ” ) ) ;
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 i c t 1 ) ;
c o p y P i c t . copy ( p i c t 2 , i + 7 , 3 0 0 ) ;
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 ) ;
}
```
You might also like to view...
Factors that affect the internal context and impact the RM process, its goals, and its objectives include the following EXCEPT:
A. The organization's governance structure B. The organization's culture C. The maturity of the organization's information security program D. The threat environment-threats, known vulnerabilities, attack vectors
When a processor encounters an extension element it does not recognize, it searches inside of that element for the _____ element.
A. ?fallback B. ?else C. ?default D. ?catch