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 8c5905e114
commit 60c5e2cd49
7 changed files with 115 additions and 38 deletions
+3 -2
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) {