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

getImageData of specific movie clip

Community Beginner ,
Oct 23, 2019 Oct 23, 2019

Copy link to clipboard

Copied

Hi

 

Is there a way to have getImageData of an specific movie clip instane, without having multiple hidden canvases ?

for example:

var targetData = this.mapMc.children[0].image.getImageData(0, 0, 200, 200);

 

Best regards

Views

219

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
LEGEND ,
Oct 23, 2019 Oct 23, 2019

Copy link to clipboard

Copied

getImageData retrieves pixels from a canvas object. So you're asking if you can get data from a canvas without having a canvas.

 

No. No you cannot.

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
New Here ,
Oct 25, 2019 Oct 25, 2019

Copy link to clipboard

Copied

LATEST

Thank You good sir.

Does that mean, if i want to mix pixel data from difrent layers do i need to have multiple hidden cnavases of that objects alone ?

Would that be the only and efficient way ?

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