Bounding Box, but only visible pixels

I am rotating an image, and as it rotates I would like to get the position of the top, right, bottom and left most non transparent pixels in world/screen space, not local space.

All examples I see are aimed at physics. This is not for physics, but for placement of UI

getBounds() is for this, but it doesn’t search pixels. You should trim transparent pixels in your image editor if that’s an issue.

It isn’t possible to do it externally as the image is of a circle. image files are always squares, so as it rotates the bounds get larger but the visible pixels stay as a circle.

What to do, what to do. Anything built in or am I doing some maths?

How about using one of the mask creators to create a mask, then do a bounds on the mask?