Z
Z
Zaur Abdulgalimov2015-10-28 13:47:24
Qt
Zaur Abdulgalimov, 2015-10-28 13:47:24

How to apply a shader to a painter object in Qt?

I have a QPainter object in which I draw something. At some point, I need to apply some kind of shader to what I drew (for example, make the image black and white). How to do it using Qt?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2015-10-28
@abdulgalimov

Well, you can work directly with pixels in a QImage, including making them black and white quite simply.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question