I have a box in my Android application, which needs to be transparent, while filling the rest of the frame outside the box with a specific colour.
How exactly could this be done in Canvas or OpenCV or any other means?
I have a box in my Android application, which needs to be transparent, while filling the rest of the frame outside the box with a specific colour.
How exactly could this be done in Canvas or OpenCV or any other means?
Copyright © 2021 Jogjafile Inc.
Here is an example showing a circle with transparent hole you can implement the same using Rectangle instead of circle.
}
reference : Medium