Rotate image dialog

Michael Thaler michael.thaler at ph.tum.de
Mon Mar 28 17:30:42 CEST 2005


On Monday 28 March 2005 17:21, Boudewijn Rempt wrote:
> On Monday 28 March 2005 17:15, Michael Thaler wrote:
> > On Monday 28 March 2005 16:47, Boudewijn Rempt wrote:
> > > * I want to give an old dimensions/new dimensions comparison. For that
> > > I need some way to access the dimensions of the layer/image after
> > > rotatating. The current rotate code doesn't give me that.
> >
> > x_new = QABS ( x_old * cos( phi ) ) + QABS( y_old * sin( phi) );
> > y_new = QABS ( y_old * cos( phi ) ) + QABS( x_old * sin( phi) );
>
> Thanks -- er, what is phi, actually?

phi is the angle by which the image is rotated. If the angle is in degrees, 
use cos( PI*phi/180 ) and sin( PI*phi/180 ) instead of just cos( phi ) and 
sin( phi ) in the above formulas. See the other mail:-)

Michael


More information about the kimageshop mailing list