Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Moved] Filter an image with an qRGB component.
bensha last edited by
I would like to filter an image (QImage myImage) with a color (QRgb myColor).
The purpose is to obtain a new image with black and white pixels.
Black pixels should match with myColor pixels of myImage.
for example, if I have a blue cup on myImage and I filter with a blue component, I want to obtain the black shape of my cup in myNewImage.
Which function can I use for doing that?
I tried to use createMaskFromColor function and apply it to my image, but I didn't succeed.
My code :
@ tags added
DenisKormalev last edited by
Moved to General and Desktop because it is Qt-related topic.