# Applying noSmooth() to a PImage

**URL:** <https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193>\
**Category:** Coding Questions\
**Created:** [April 27, 2020, 4:51am UTC](https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193 "2020-04-27T04:51:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndJ](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@AndJ](https://discourse.processing.org/u/AndJ)\
**Post date:** [April 27, 2020, 4:51am UTC](https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193/1 "2020-04-27T04:51:32Z")

</div>

I was working with a `PImage` (size 17x12 pixels), and trying to scale it up much larger. When I did this, it made the image blurry like it had anti-aliasing enabled. I know that the `noSmooth()` method aliases (turns off anti-aliasing), and was wondering if there was a similar process that can be applied to a `PImage` as it does not apply itself to `PImage` objects by default.

Thanks for any help

---

<div class="post-metadata">

**Author:** ![KevinWho](https://avatars.discourse-cdn.com/v4/letter/k/dbc845/32.png) [@KevinWho](https://discourse.processing.org/u/KevinWho)\
**Post date:** [April 28, 2020, 7:30pm UTC](https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193/2 "2020-04-28T19:30:25Z")

</div>

Try using PGraphics. You can draw the image on there, and it seems you can apply noSmooth() to it as well. I have not been able to test it, but it may work

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [May 7, 2020, 11:59pm UTC](https://discourse.processing.org/t/applying-nosmooth-to-a-pimage/20193/3 "2020-05-07T23:59:42Z")

</div>

> [@AndJ](#):
>
> I was working with a `PImage` (size 17x12 pixels), and trying to scale it up much larger. When I did this, it made the image blurry like it had anti-aliasing enabled

What renderer in size()? Default Java2D, P2D / P3D?

What is the destination size? Is it a clean multiple of 17 \* c, 12 \* r ?
