# How to make histogram but the PImage location is not 0, 0

**URL:** <https://discourse.processing.org/t/how-to-make-histogram-but-the-pimage-location-is-not-0-0/33742>\
**Category:** Coding Questions\
**Tags:** homework\
**Created:** [November 25, 2021, 3:06am UTC](https://discourse.processing.org/t/how-to-make-histogram-but-the-pimage-location-is-not-0-0/33742 "2021-11-25T03:06:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [November 25, 2021, 12:06pm UTC](https://discourse.processing.org/t/how-to-make-histogram-but-the-pimage-location-is-not-0-0/33742/2 "2021-11-25T12:06:56Z")

</div>

Hello,

There are tutorials, examples and references here:

> **[Welcome to Processing!](https://processing.org)**
>
> Processing is a flexible software sketchbook and a language for learning how to code. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology…

I saw a good example in there of processing a portion of an image that may help.

There are also examples that come with the Processing IDE.

There is an example here where I get() a portion of an image and work with it:

> [@Filling a PShape](https://discourse.processing.org/t/filling-a-pshape/33644/2):
>
> Hello, Here is an example using the existing circle() shape: PImage img1, img2; PGraphics pg; void setup() { size(300, 300); //img1 = loadImage("https://processing.org/img/processing-web.png"); img1 = loadImage("https://raw.githubusercontent.com/processing/processing-website/main/content/examples/Basics/Image/LoadDisplayImage/data/moonwalk.jpg"); img2 = createImage(100, 100, RGB); img2 = img1.get(360, 100, 100, 100); pg = createGraphics(100, 100); pg.beginDraw(); //pg.…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/how-to-make-histogram-but-the-pimage-location-is-not-0-0/33742)._
