Manipulate image and apply RGB mask: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Revision as of 16:06, 14 January 2015
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: