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: