get() for image dupe instead of copy().. also hex/binary unhex/unbinary

This commit is contained in:
benfry
2004-07-17 19:54:36 +00:00
parent 75c47e4b1a
commit 7c8e9d81f0
7 changed files with 115 additions and 38 deletions

View File

@@ -552,9 +552,10 @@ public class PImage implements PConstants, Cloneable {
/**
* Convenience method to avoid an extra cast.
* Convenience method to avoid an extra cast,
* and the exception handling.
*/
public PImage copy() {
public PImage get() {
try {
return (PImage) clone();
} catch (CloneNotSupportedException e) {