change brightness and contrast of canvas with marvinj

61 views
Skip to first unread message

Skyer Walker

unread,
Nov 26, 2018, 2:28:57 PM11/26/18
to Marvin Project
I did some search but can seen to find a way to use marvinj to do brightness and contrast, is this feature not part of the js solution? if not could you recommend a js framework that can do this? I am building an online photo editing app. thanks! 

Gabriel Ambrósio Archanjo

unread,
Nov 26, 2018, 3:18:29 PM11/26/18
to Marvin Project
Yes, it is.

Marvin.brightnessAndContrast(imageIn, imageOut, brightness, contrast);

Example:

Marvin.brightnessAndContrast(image.clone(), image, 10, 0);
Reply all
Reply to author
Forward
0 new messages