P
P
Pavel Mikhalovsky2017-07-10 14:40:17
Qt
Pavel Mikhalovsky, 2017-07-10 14:40:17

How to save a QPixmap image that has been scaled down using the scaled() function?

I set a limit on the image size of 100x100 in the program, how to save the image in the same size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ighor July, 2017-07-10
@pavel9609

QPixmap pix;
...
pix.scaled(100,100,..).save("./asdfasdf.png", "png");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question