Hi,
I have a QImage with an existing uchar * buffer.
If I make:
Qt Code:
qimage = qimage.scaled(..);To copy to clipboard, switch view to plain text mode
the qimage buffer is the same, or I need to delete the previous buffer ?
thanks
Hi,
I have a QImage with an existing uchar * buffer.
If I make:
Qt Code:
qimage = qimage.scaled(..);To copy to clipboard, switch view to plain text mode
the qimage buffer is the same, or I need to delete the previous buffer ?
thanks
QImage::scaled() makes a deep copy of the image. The new image will have its own (new) buffer.
Yes, but the new buffer of the scaled image, it is managed by the qimage or I need to delete it after the image destruction?
you need not delete it manually.
Bookmarks