Get Image Tranformed

Hey,

 

I'm trying to draw a drop shadow on an image after it's rotated, but currently I'm only able to apply the shadow effect to the image before it is rotated. 

Is there some functionality for save the rotated image to a temp image which I can use to calculate the shadow?

Sometime like

tempimage = getImageTranformed(image, tranformation);

dropShadow->applyEffect(tempImage);

 

Thanks,

Jake