Manipulate image and apply RGB mask

From Qt Wiki
Revision as of 16:06, 14 January 2015 by Maintenance script (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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:

Categories: