Changes the brightness of image using GammaAdjust QtGraphicalEffects

Authored by atulsharma on Aug 22 2017, 7:23 PM.



Refs T6268

  • uses grabToItem function to capture the modified image
Test Plan

there is just one problem the size of the image changes

Diff Detail

R659 Koko Image Gallery
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
atulsharma created this revision.Aug 22 2017, 7:23 PM
mart added inline comments.Aug 22 2017, 8:12 PM

this should probably be enabled only when not saved: once saved, the image should be reloaded and then the effect disabled (and hopefully with a bit of luck looking the same)

atulsharma updated this revision to Diff 18557.Aug 22 2017, 9:09 PM

Reloads the image after it is saved

mart accepted this revision.Aug 22 2017, 9:54 PM
This revision is now accepted and ready to land.Aug 22 2017, 9:54 PM
lrobinson removed a subscriber: lrobinson.
This revision was automatically updated to reflect the committed changes.