Copy link to clipboard
Copied
hi friendsï¼›
How do I get the total of pixels in an irregular selection?Thank you for any idea。
var total = 0;
for (var i = 0; i < activeDocument.histogram.length; i++)
total += activeDocument.histogram[i];
alert(total);
Copy link to clipboard
Copied
var total = 0;
for (var i = 0; i < activeDocument.histogram.length; i++)
total += activeDocument.histogram[i];
alert(total);
Copy link to clipboard
Copied
Oh, it works,thanks,