Given a .png image with a transparent background, I want to find the bounding box of the non-transparent data. Using nested for loops with QImage.pixel() is painfully slow. Is there a built-in method of doing this in Qt?
Given a .png image with a transparent background, I want to find the bounding
Share
If pixel() is too slow for you, consider more efficient row-wise data adressing, given a QImage p:
I doubt it will get any faster than this.