• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

How do I get the total of pixels in an irregular selection

Engaged ,
Jun 07, 2020 Jun 07, 2020

Copy link to clipboard

Copied

hi friends;

   How do I get the total of pixels in an irregular selection?Thank you for any idea。

QQ截图20200608102414.png

TOPICS
Actions and scripting , SDK

Views

669

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Jun 07, 2020 Jun 07, 2020
var total = 0;

for (var i = 0; i < activeDocument.histogram.length; i++)
    total += activeDocument.histogram[i];

alert(total);

Votes

Translate

Translate
Adobe
People's Champ ,
Jun 07, 2020 Jun 07, 2020

Copy link to clipboard

Copied

var total = 0;

for (var i = 0; i < activeDocument.histogram.length; i++)
    total += activeDocument.histogram[i];

alert(total);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 07, 2020 Jun 07, 2020

Copy link to clipboard

Copied

LATEST

Oh, it works,thanks,

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines