# Slit scan with picture

**URL:** <https://discourse.processing.org/t/slit-scan-with-picture/34073>\
**Category:** Beginners\
**Created:** [December 12, 2021, 11:01am UTC](https://discourse.processing.org/t/slit-scan-with-picture/34073 "2021-12-12T11:01:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bopbopbop114](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@bopbopbop114](https://discourse.processing.org/u/bopbopbop114)\
**Post date:** [December 12, 2021, 11:01am UTC](https://discourse.processing.org/t/slit-scan-with-picture/34073/1 "2021-12-12T11:01:06Z")

</div>

Hi everybody,  
i want to ask if processing can do slit scan with pictures  
thank you

---

<div class="post-metadata">

**Author:** ![ASHER](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@ASHER](https://discourse.processing.org/u/ASHER)\
**Post date:** [December 12, 2021, 10:27pm UTC](https://discourse.processing.org/t/slit-scan-with-picture/34073/2 "2021-12-12T22:27:03Z")

</div>

Hello,

Is this what you mean?

![sclit_scan](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/1/19729fa71f3d7c24c3347a003d3a2ac2a9e661cd.gif)

Photo by [Simone Hutsch](https://unsplash.com/@heysupersimi?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText) on [Unsplash](https://unsplash.com/s/photos/city?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText)

---

<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:** [December 13, 2021, 12:04am UTC](https://discourse.processing.org/t/slit-scan-with-picture/34073/3 "2021-12-13T00:04:10Z")

</div>

> [@bopbopbop114](#):
>
> i want to ask if processing can do slit scan with pictures

Then ask!

I was able to do this with a few lines of code:

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/af27aece16022b1e7485e8489b920a5634d8be36.png)

Reference:

> **[PImage / Reference](https://processing.org/reference/PImage.html)**
>
> Datatype for storing images. Processing can display .gif, .jpg, .tga, and .png images. Images may be displayed in 2D and 3D space. Before an image is used, it must be loade…

Hints:

- _get()_ and _mouseX()_ to get a slice (slit) of the image
- _set()_ to draw the slice while increasing x each frame of draw()

Reference:

> **[Slit-scan photography](https://en.wikipedia.org/wiki/Slit-scan_photography)**
>
> The slit-scan photography technique is a photographic and cinematographic process where a moveable slide, into which a slit has been cut, is inserted between the camera and the subject to be photographed.
> More generally, "slit-scan photography" refers to cameras that use a slit, which is particularly used in scanning cameras in panoramic photography. This has numerous applications. This article discusses the manual artistic technique.
> Originally used in static photography to achieve blurriness ...

`:)`
