Hello , Today I’m going to show the small demo of masking. In javafx masking is known as clipping. Every Node Object has

You can use the setClip to any Node.The setClip is used to mask for specific dimension of the existing Node.Let’s see the demo application of this masking in Detective Glass Application.

Source Code (DetectiveGlass.java):

Detective Glass (Masking)

A worked out example : Detective Glass

 

Feel free to comment.

Have a 🙂 good day.