PDA

View Full Version : Qt3-Pixmap rotation's deformation



Raccoon29
5th September 2007, 10:39
Hi everyone,

I have applied several consecutive rotations to a pixmap, using a QWMatrix.
Rotation is done, but there is a "little" blurr problem: after few rotations the image become circular and unrecognizable, as shown in the allegated image. :eek:
Is there a way to avoid this?

Thank you very much in advance!

marcel
9th September 2007, 18:15
I think you don't clear the background after applying a new rotation and drawing the result.
Are you drawing directly on a widget or on a pixmap?

So, you must be drawing on the old background. This is what is causing this effect.

Regards

Raccoon29
11th September 2007, 17:40
Thank you marcel for the hint.


Are you drawing directly on a widget or on a pixmap?

No, I am drawing on a QPixmap object created new each time.
Furthermore, that QPixmap object is white filled everytime.
So maybe the problem is elsewhere? :confused:

If it could aid, I could post the rotation's code piece, but there is nothing else that a pixmap rotation using a QWMatrix...

Greetings