Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
Manipulate image and apply RGB mask
Jump to navigation
Jump to search
Small snippet showing how to take a QImage, run through its pixels and modify them based on certain conditions.
Here img is an input image, the application form has 4 checkboxes, which define the component of the color (ARGB) that is to be masked.
Here is an alternative version which should be quite a bit faster, but is less readable, perhaps: