# APDE Pimage.copy() compile error

**URL:** https://discourse.processing.org/t/apde-pimage-copy-compile-error/5650
**Category:** Processing for Android
**Created:** [November 17, 2018, 10:50pm UTC](https://discourse.processing.org/t/apde-pimage-copy-compile-error/5650 "2018-11-17T22:50:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![InSat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/insat/32/2403_2.png) [@InSat](https://discourse.processing.org/u/InSat)
#### Post date: [November 17, 2018, 10:50pm UTC](https://discourse.processing.org/t/apde-pimage-copy-compile-error/5650/1 "2018-11-17T22:50:52Z")

</div>

Hello, I’m a beginer in Processing using APDE on Phone and Processing on Windows. If anyone can help me.

I create this sketch on Windows, this is a stupid sample but it’s run fine.

//---------------------------------------  
PImage cloneImg;

void setup() {  
PImage img = loadImage(“img.png”); // anything image  
cloneImg = img.copy();  
}

void draw() {  
background(0);  
image(cloneImg, 0, 0);  
}  
//---------------------------------------

When I try to run it under my Phone with APDE 0.5.0 I have a strange compile error 🙂

Initializing build sequence…

Deleted old build folder

Injected log broadcaster

Detected architecture armeabi-v7a

Packaging resources with AAPT…

Compiling with ECJ…

* * *

1. ERROR in /data/data/com.calsignlabs.apde/app\_build/src/processing/test/image/Image.java (at line 23)

cloneImg = img.copy();

```
           ^^^^

```

The method copy(int, int, int, int, int, int, int, int) in the type PImage is not applicable for the arguments ()

* * *

1 problem (1 error)

Compiling with ECJ failed  
:

---

<div class="post-metadata">

### Author: ![calsign](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/calsign/32/30_2.png) [@calsign](https://discourse.processing.org/u/calsign)
#### Post date: [November 19, 2018, 9:33pm UTC](https://discourse.processing.org/t/apde-pimage-copy-compile-error/5650/2 "2018-11-19T21:33:12Z")

</div>

For some reason, Android mode doesn’t have the `PImage.copy()` function with no parameters. I think you can use [`PImage.get()`](https://processing.org/reference/PImage_get_.html) with no parameters instead.
