mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 01:50:44 +01:00
get() for image dupe instead of copy().. also hex/binary unhex/unbinary
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user