# Alternative to using get() in a big PGraphics

**URL:** <https://discourse.processing.org/t/alternative-to-using-get-in-a-big-pgraphics/2654>\
**Category:** Coding Questions\
**Created:** [August 15, 2018, 7:19am UTC](https://discourse.processing.org/t/alternative-to-using-get-in-a-big-pgraphics/2654 "2018-08-15T07:19:34Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [August 15, 2018, 8:34am UTC](https://discourse.processing.org/t/alternative-to-using-get-in-a-big-pgraphics/2654/4 "2018-08-15T08:34:36Z")

</div>

> [@Extension\_Shoe](#):
>
> Sorry for wasting your time but what is the syntax for the 9 argument image function?

[http://processing.github.io/processing-javadocs/core/processing/core/PGraphics.html#image-processing.core.PImage-float-float-float-float-int-int-int-int-](http://processing.github.io/processing-javadocs/core/processing/core/PGraphics.html#image-processing.core.PImage-float-float-float-float-int-int-int-int-)

First 4 floats are the rectangle that you want to draw the image (or part of it) into, as x, y, width and height. The 4 ints are the coordinates of the two points in the source image that define the region. Note that the last two arguments are the absolute coordinates _not_ the width and height of the source region.

eg. to draw a region 200,150 of your map with top left 400,300 at 100,100 on screen you would use

```java
image(map, 100, 100, 200, 150, 400, 300, 600, 450);

```

For some reason this isn’t on the image() page at [image() / Reference / Processing.org](https://processing.org/reference/image_.html) Seems to be an odd omission.

---

_[View the full topic](https://discourse.processing.org/t/alternative-to-using-get-in-a-big-pgraphics/2654)._
