how to get the pixel bounds of a recttransform

I’m trying to get the pixel bounds of a recttransform on screen.

I sort of have it but it’s not quite right, is there an easy way of doing this so I can slice it up using Rect, this is for point detection, I cannot use panels etc because I don’t want to have to move my finger off only slide.

Unity - Scripting API: Camera.WorldToScreenPoint ?

recttransform is not in world coordinates it’s in screen coordinates you might even get away with viewport not sure.