QtAV icon indicating copy to clipboard operation
QtAV copied to clipboard

How can I change brightness of QImage

Open ihmin opened this issue 4 years ago • 1 comments

I am newbie of QtAV. I want to change brightness, contrast, saturation of QImage using by QtAV API.

QImage frameImage; freameImage.load("a.jpg");

QtAV::VideoFrame f(frameImage); QtAV::VideoFormat fmt(f.format()); QtAV::VideoFrameConverter conv; conv.setEq(brightness, contrast, saturation); QtAV::VideoFrame f2 = conv.convert(f, fmt);

QImage newImage = f2.toImage();

But, frameImage and newImage is same. How can I change?

Thanks.

ihmin avatar Sep 11 '20 17:09 ihmin

No such api. QtAV does not change the original image

wang-bin avatar Sep 17 '20 07:09 wang-bin