I am trying to resize a rotated shape in a resizable component.
For resizing the component after rotating the shape I am using:
int newWidth = (int) ((rect