Gets the image contents of frame n. @return ImageProcessor representation of frame, or null if n is invalid.
(int n)
| 143 | * @return ImageProcessor representation of frame, or null if n is invalid. |
| 144 | */ |
| 145 | public ImageProcessor getFrame(int n) { |
| 146 | ImageProcessor im = null; |
| 147 | if ((n >= 0) && (n < frameCount)) |
| 148 | im = ((GifFrame) frames.elementAt(n)).image; |
| 149 | return im; |
| 150 | } |
| 151 | |
| 152 | |
| 153 | /** |