# Creating an Inverse Cropping Widget

**URL:** <https://discourse.vtk.org/t/creating-an-inverse-cropping-widget/14221>\
**Category:** Web\
**Tags:** code\
**Created:** [July 12, 2024, 2:52pm UTC](https://discourse.vtk.org/t/creating-an-inverse-cropping-widget/14221 "2024-07-12T14:52:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishwa\_gqc](https://discourse.vtk.org/user_avatar/discourse.vtk.org/vishwa_gqc/32/9064_2.png) [@vishwa\_gqc](https://discourse.vtk.org/u/vishwa_gqc)\
**Post date:** [July 12, 2024, 2:52pm UTC](https://discourse.vtk.org/t/creating-an-inverse-cropping-widget/14221/1 "2024-07-12T14:52:18Z")

</div>

Hi ,

I need to create an “inverse widget” using `vtkImageCroppingWidget` in VTK.js. Specifically, I want the area outside the cropping box to be visible and the area inside the box to be invisible.

Are there any best practices or alternative methods to achieve this effect?

Thank you for your guidance and suggestions!
