# crop picture

**URL:** <https://forum.xojo.com/t/crop-picture/16689>\
**Category:** General\
**Created:** [May 21, 2014, 8:04pm UTC](https://forum.xojo.com/t/crop-picture/16689 "2014-05-21T20:04:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Morgan](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/65b543/32.png) [@Joseph\_Morgan](https://forum.xojo.com/u/Joseph_Morgan)\
**Post date:** [May 21, 2014, 8:04pm UTC](https://forum.xojo.com/t/crop-picture/16689/1 "2014-05-21T20:04:59Z")

</div>

I need to crop a picture that I created by code. I think I am supposed to use a mask but I haven’t been able to figure it out. I thought you were supposed to create a picture fill it with black and apply it as a mask to the picture requiring the mask but it’s not working. I’m sure it’s simple but can someone help get me started? 🙂

---

<div class="post-metadata">

**Author:** ![Kem\_Tekinay](https://forum.xojo.com/user_avatar/forum.xojo.com/kem_tekinay/32/154_2.png) [@Kem\_Tekinay](https://forum.xojo.com/u/Kem_Tekinay)\
**Post date:** [May 21, 2014, 8:07pm UTC](https://forum.xojo.com/t/crop-picture/16689/2 "2014-05-21T20:07:42Z")

</div>

Have you looked at all the parameters of [DrawPicture](http://documentation.xojo.com/index.php/Graphics.DrawPicture)? That might help you.

---

<div class="post-metadata">

**Author:** ![Joseph\_Morgan](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/65b543/32.png) [@Joseph\_Morgan](https://forum.xojo.com/u/Joseph_Morgan)\
**Post date:** [May 21, 2014, 8:15pm UTC](https://forum.xojo.com/t/crop-picture/16689/3 "2014-05-21T20:15:36Z")

</div>

> [@90248:@Kem Tekinay](#):
>
> Have you looked at all the parameters of [DrawPicture](http://documentation.xojo.com/index.php/Graphics.DrawPicture)?

Yes but I forgot all about them. Looks like I was making that way harder than it had to be. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:14pm UTC](https://forum.xojo.com/t/crop-picture/16689/4 "2020-10-29T17:14:11Z")

</div>


