Post the code you are using. So that we can suggest
Added after 4 minutes:
painter->translate(100, 150); // the point about which the image rotates
painter->rotate(60);
painter->translate(100, 150); // the point about which the image rotates
painter->rotate(60);
To copy to clipboard, switch view to plain text mode
Did you used in this way???
#include <qimage.h>
#include <qwmatrix.h>
QImage myImage
("myimage.jpeg");
if( !myImage.isNull() )
{
QWMatrix m;
m.rotate( 90.0 );
myImage = myImage.xForm( m );
}
#include <qimage.h>
#include <qwmatrix.h>
QImage myImage("myimage.jpeg");
if( !myImage.isNull() )
{
QWMatrix m;
m.rotate( 90.0 );
myImage = myImage.xForm( m );
}
To copy to clipboard, switch view to plain text mode
Or this way
Bookmarks