mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 01:49:25 +02:00
Qt: use smooth transformation when scaling an QImage. issue #29883
git-svn-id: trunk@52086 -
This commit is contained in:
parent
780ef75887
commit
935080e197
@ -3571,8 +3571,9 @@ begin
|
||||
ScaledImage := QImage_create();
|
||||
try
|
||||
QImage_copy(Image, ScaledImage, 0, 0, QImage_width(Image), QImage_height(Image));
|
||||
// use smooth transformation when scaling image. issue #29883
|
||||
QImage_scaled(ScaledImage, ScaledImage, LocalRect.Right - LocalRect.Left,
|
||||
LocalRect.Bottom - LocalRect.Top);
|
||||
LocalRect.Bottom - LocalRect.Top, QtIgnoreAspectRatio, QtSmoothTransformation);
|
||||
NewRect := sourceRect^;
|
||||
NewRect.Right := (LocalRect.Right - LocalRect.Left) + sourceRect^.Left;
|
||||
NewRect.Bottom := (LocalRect.Bottom - LocalRect.Top) + sourceRect^.Top;
|
||||
|
Loading…
Reference in New Issue
Block a user