# How can I mask graphics to a resizable rectangle?

**URL:** <https://discourse.processing.org/t/how-can-i-mask-graphics-to-a-resizable-rectangle/23632>\
**Category:** Coding Questions\
**Created:** [September 2, 2020, 12:49pm UTC](https://discourse.processing.org/t/how-can-i-mask-graphics-to-a-resizable-rectangle/23632 "2020-09-02T12:49:04Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [September 7, 2020, 12:39pm UTC](https://discourse.processing.org/t/how-can-i-mask-graphics-to-a-resizable-rectangle/23632/7 "2020-09-07T12:39:23Z")

</div>

I have a feeling you might want to look at the nine argument version of `image()` for this - see [Alternative to using get() in a big PGraphics](https://discourse.processing.org/t/alternative-to-using-get-in-a-big-pgraphics/2654/4)

---

_[View the full topic](https://discourse.processing.org/t/how-can-i-mask-graphics-to-a-resizable-rectangle/23632)._
