Posts
22
Comments
75
Trackbacks
0
Simple Image Manipulation - Brightness
Last time I played with played with Pixels - Color Effect with HTML5 and JS
http://geekswithblogs.net/HumpreyCogay/archive/2018/05/11/244688.aspx

For this short post, let's go back to basics. Let us try to adjust an image's brightness by trying to add a value between -255 (darkest ) to 255 (lightest) to an image pixel data.

SOURCE CODE - https://jsfiddle.net/HumpreyCogay/upbnvnsb/

NOTE - an image can be loaded to an ImageData, The data attribute of this object contains a Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (included).

below is a short sample on how to read the RGB data parts.
  RED = imageData[c ] 
GREEN = imageData[c+1] 
BLUE = imageData[c+2] 




posted on Wednesday, May 16, 2018 6:34 PM Print
Comments
Gravatar
# re: Simple Image Manipulation - Brightness
June
5/17/2018 3:38 AM

https://reading-escorts-agency.co.uk/meet-june-girl.html
Gravatar
# re: Simple Image Manipulation - Brightness
Jessica
5/17/2018 3:39 AM
My mom made me to view the website. I considered it was another site for dummies but I rapidly noticed that I ended up to be incorrectly. It can be a awesome websites with exceptional articles.
https://reading-escorts-agency.com/meet-jessica-girl.html

Post Comment

Title *
Name *
Email
Comment *  
Verification
Tag Cloud