The following code puts up a widget and rotates it using 2 different methods - a Transform widget and an ImageFiltered widget with an ImageFilter.matrix filter.
The two behave very similarly, but the output of the ImageFiltered widget is clipped to the original bounds of the transformed child.
Gist: https://gist.github.com/flar/da94ae35e8b86184b404000dfda68313