Duplicate an image, returns new PImage object. The pixels[] array for the new object will be unique and recopied from the source image. This is implemented as an override of Object.clone(). We recommend using get() instead, because it prevents you from needing to catch the CloneNotSupportedException
()
| 518 | * CloneNotSupportedException, and from doing a cast from the result. |
| 519 | */ |
| 520 | @Override |
| 521 | public Object clone() throws CloneNotSupportedException { // ignore |
| 522 | return get(); |
| 523 | } |
| 524 | |
| 525 | |
| 526 | /** |